shiny.ui.HTML#

class shiny.ui.HTML#

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

Example

>>> 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>