diff --git a/src/py/extra/utils/htmpl.py b/src/py/extra/utils/htmpl.py index f69ff9c..9c82b8f 100644 --- a/src/py/extra/utils/htmpl.py +++ b/src/py/extra/utils/htmpl.py @@ -57,7 +57,9 @@ def iterHTML(self) -> Iterator[str]: yield from self.iterXML(html=True) def iterXML(self, html=False) -> Iterator[str]: - if self.name == "#text": + if self.name == "#raw": + yield str(self.attributes.get("#value") or "") + elif self.name == "#text": yield escape(str(self.attributes.get("#value") or "")) elif self.name == "--": yield "