express.ui.HTML

express.ui.HTML()

Mark a string as raw HTML. This will prevent the string from being escaped when rendered inside an HTML tag.

Examples

>>> from htmltools import HTML, div
>>> div("<p>Hello</p>")
<div>&lt;p&gt;Hello&lt;/p&gt;</div>
>>> div(HTML("<p>Hello</p>"))
<div><p>Hello</p></div>