mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-06-26 10:11:30 +00:00
- Tags in the OPDS feed are HTML encoded and must be decoded. - Tag values must be HTML encoded when injected into the DOM: * When the injection is done by setting the innerHTML attribute of a DOM element, HTML encoding must be done explicitly (since that text is going to be parsed as HTML). * When the tag value is expanded into a string that is then set as an attribute of a DOM element via the setAttribute() method, no HTML encoding must be done (since Element.setAttribute() directly sets that value and no HTML decoding is involved in that operation).