strip_harmful_tags: allow article

This commit is contained in:
Andrew Dolgov 2013-03-19 21:57:29 +04:00
parent a122b50707
commit 2229e6ed6b
1 changed files with 1 additions and 1 deletions

View File

@ -2634,7 +2634,7 @@
function strip_harmful_tags($doc) { function strip_harmful_tags($doc) {
$entries = $doc->getElementsByTagName("*"); $entries = $doc->getElementsByTagName("*");
$allowed_elements = array('a', 'address', 'audio', $allowed_elements = array('a', 'address', 'audio', 'article',
'b', 'big', 'blockquote', 'body', 'br', 'cite', 'b', 'big', 'blockquote', 'body', 'br', 'cite',
'code', 'dd', 'del', 'details', 'div', 'dl', 'code', 'dd', 'del', 'details', 'div', 'dl',
'dt', 'em', 'footer', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'dt', 'em', 'footer', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6',