Page MenuHomePhabricator

Sanitise <description> elements
Open, Needs TriagePublic

Description

Some feeds, like that of Diigo [https://www.diigo.com/rss/user/Agharbeia ] erroneously includes HTML markup in the <description> element of RSS.
In this specific case they use it to encode tags/keywords of bookmark items, where they should be using the <category> element for that.

The HTML markup causes havoc in the wikipage and editor.

It's better to sanitise content of <description>, and probably other elements, before emitting them to the page.

Event Timeline

ahmad created this task.Nov 30 2015, 3:25 PM
ahmad raised the priority of this task from to Needs Triage.
ahmad updated the task description. (Show Details)
ahmad added a subscriber: ahmad.
Restricted Application added subscribers: StudiesWorld, Aklapper. · View Herald TranscriptNov 30 2015, 3:25 PM
Reedy renamed this task from Sanitise <desciprion> elements to Sanitise <description> elements.Nov 30 2015, 3:25 PM
Reedy set Security to None.
Nemo_bis added subscribers: Base, Matanya, JeroenDeDauw and 3 others.
Nemo_bis added a subscriber: Nemo_bis.

https://www.mediawiki.org/wiki/Extension:Translate said:

Merge "Use TitleIsAlwaysKnown hook instead of LinkBegin"

Merge &quot;Use TitleIsAlwaysKnown hook instead of LinkBegin&quot;
jenkins-bot 2016-05-24 06:59:39

https://git.wikimedia.org/feed/mediawiki/extensions/Translate.git has <description>Merge &amp;quot;Use TitleIsAlwaysKnown hook instead of LinkBegin&amp;quot;</description>