From: Andrew Dolgov Date: Wed, 25 Jan 2017 05:43:50 +0000 (+0300) Subject: Merge branch 'fix-sanitize-dfn' into 'master' X-Git-Tag: 17.4~74 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=e304c1473b885508b08075a8a9f5513e3e08f337;hp=e3cdbd87bcb413e011c07b30954bdda3b5aa8089;p=tt-rss.git Merge branch 'fix-sanitize-dfn' into 'master' sanitize: allow tag ### In brief * Add `` tag to allowed tags list * `` represents the defining instance of a term in HTML * More [information about `` on the w3school's website](http://www.w3schools.com/tags/tag_dfn.asp ) ### Example This stops article content such as... ``` Indian tea harvests are divided up by flush. ``` ...from getting turned into... ``` Indian tea harvests are divided up by . ``` See merge request !45 --- diff --git a/include/functions2.php b/include/functions2.php index f0e352ed..ff4ac2c7 100644 --- a/include/functions2.php +++ b/include/functions2.php @@ -978,7 +978,7 @@ $allowed_elements = array('a', 'address', 'acronym', 'audio', 'article', 'aside', 'b', 'bdi', 'bdo', 'big', 'blockquote', 'body', 'br', 'caption', 'cite', 'center', 'code', 'col', 'colgroup', - 'data', 'dd', 'del', 'details', 'description', 'div', 'dl', 'font', + 'data', 'dd', 'del', 'details', 'description', 'dfn', 'div', 'dl', 'font', 'dt', 'em', 'footer', 'figure', 'figcaption', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'header', 'html', 'i', 'img', 'ins', 'kbd', 'li', 'main', 'mark', 'nav', 'noscript',