D6673: [Notifications] Manually remove remote images
Kai Uwe Broulik
noreply at phabricator.kde.org
Sun Jan 28 01:14:54 UTC 2018
broulik added a comment.
I think `QXmlStreamReader` may be the way to go, I wasn't aware on how strict the spec is wrt HTML support.
David, an `<img>` opening tag is still valid XHTML, you might receive a document ended prematurely error at the end since there won't be a closing tag but definitely worth a shot filtering out any tags other than `<b>` etc and stripping all attributes other than `src` with local URL, especially the `style` attribute.
REPOSITORY
R120 Plasma Workspace
REVISION DETAIL
https://phabricator.kde.org/D6673
To: broulik, #plasma, fvogt
Cc: aacid, davidedmundson, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20180128/fc6d2121/attachment.html>
More information about the Plasma-devel
mailing list