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