Merge pull request #14287 from atm-florianm/FIX_allow_more_html_tags

NEW: additional html tags allowed by dol_string_onlythesehtmltags()
This commit is contained in:
Laurent Destailleur 2020-07-29 13:34:45 +02:00 committed by GitHub
commit f2390e85b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5694,8 +5694,7 @@ function dol_string_onlythesehtmltags($stringtoclean, $cleanalsosomestyles = 1)
{
$allowed_tags = array(
"html", "head", "meta", "body", "article", "a", "abbr", "b", "blockquote", "br", "cite", "div", "dl", "dd", "dt", "em", "font", "img", "ins", "hr", "i", "li", "link",
"ol", "p", "q", "s", "section", "span", "strike", "strong", "title",
"table", "tr", "th", "td", "u", "ul"
"ol", "p", "q", "s", "section", "span", "strike", "strong", "title", "table", "tr", "th", "td", "u", "ul", "sup", "sub", "blockquote", "pre", "h1", "h2", "h3", "h4", "h5", "h6"
);
$allowed_tags_string = join("><", $allowed_tags);
$allowed_tags_string = preg_replace('/^>/', '', $allowed_tags_string);