Code: Select all
<p><dfn title="HyperText Markup Language">HTML</dfn> is the standard markup language for creating web pages.</p>
I first noticed this in https://fox.blue/feed/atom, e.g.
Code: Select all
Indian tea harvests are divided up by <dfn>flush</dfn>.
TinyTiny-RSS currently strips this tag out, resulting in missing text, e.g.
Code: Select all
Indian tea harvests are divided up by .
My Gitlab username is digitalcircuit, and a simple patch is...
Code: Select all
sanitize: allow dfn tag
Add <dfn> tag to allowed tags list. <dfn> represents the defining
instance of a term in HTML.
---
include/functions2.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/functions2.php b/include/functions2.php
index f0e352e..ff4ac2c 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',
--
2.7.4
I tried to follow the Contributing checklist; apologies in advance if I missed some steps. There's some other small sanitization/parsing related fixes, but to keep this focused, I'll save those for later merge requests.