Html
<et2-html> | Et2Html
Displays raw HTML content (from the content array or a set value), with a simple optional label prefix -
ported from legacy et2_html/et2_widget_html.ts. Renders into the light DOM (createRenderRoot() returns
this, same technique as Et2Image/ Et2VfsMime/Et2Customfields) rather than a shadow root -
arbitrary provided HTML/CSS classes need to inherit normal page styling, which shadow-DOM encapsulation
would silently break. Legacy et2_html ran embedded <script> blocks (via jQuery’s
.append(), which executes them) - lit’s unsafeHTML() inserts them the same inert way plain innerHTML does,
so each script element is recreated after render to force execution, preserving that behaviour. Server-side
purification (Api\Html\HtmLawed::purify()) is the primary gate; DOMPurify here is defense-in-depth, not a
replacement for it. ADD_TAGS keeps both