Skip to content

Commit

Permalink
add video and audio html5 tags to body tag whitelist
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas CARPi committed Apr 30, 2014
1 parent 5758aa6 commit 231da9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ function check_body($input)
// Check BODY (sanitize only);
if ((isset($input)) && (!empty($input))) {
// we white list the allowed html tags
return strip_tags($input, "<div><br><br /><p><sub><img><sup><strong><b><em><u><a><s><font><span><ul><li><ol><blockquote><h1><h2><h3><h4><h5><h6><hr><table><tr><td><code>");
return strip_tags($input, "<div><br><br /><p><sub><img><sup><strong><b><em><u><a><s><font><span><ul><li><ol><blockquote><h1><h2><h3><h4><h5><h6><hr><table><tr><td><code><video><audio>");
} else {
return '';
}
Expand Down

0 comments on commit 231da9c

Please sign in to comment.