diff options
author | Andrew Dolgov <[email protected]> | 2017-01-25 08:43:50 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-01-25 08:43:50 +0300 |
commit | e304c1473b885508b08075a8a9f5513e3e08f337 (patch) | |
tree | 591db65372aea9a6817f89df1092957c4f5a3a99 | |
parent | e3cdbd87bcb413e011c07b30954bdda3b5aa8089 (diff) | |
parent | 311cdb27f47f1a16a3bfb0cef555bab122fdc253 (diff) |
Merge branch 'fix-sanitize-dfn' into 'master'
sanitize: allow <dfn> tag
### In brief
* Add `<dfn>` tag to allowed tags list
* `<dfn>` represents the defining instance of a term in HTML
* More [information about `<dfn>` 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 <dfn>flush</dfn>.
```
...from getting turned into...
```
Indian tea harvests are divided up by .
```
See merge request !45
-rw-r--r-- | include/functions2.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions2.php b/include/functions2.php index f0e352ed1..ff4ac2c77 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', |