rawHtml
Write html into the current kotlinx.html tag without escaping its markup. Intended for embedding Markdown or third-party HTML snippets inside a DSL slide.
Tags are left alone — that is the point. What is repaired is the text around them: kotlinx.html parses this as XML on its way into the DOM, where a bare & in "Tom & Jerry" or a name only HTML knows like would otherwise abort the render for every deck at once. Both survive, as the space it names. A bare < is still fatal and cannot be repaired here, since telling a real tag from a stray < is exactly what this function declines to do — write <.
Intended for element content. Inside a <script> or <style> a named entity is decoded the same way, which would rewrite '©' in your JavaScript into a symbol — use kotlinx.html's +text there instead, which emits a text node the parser never sees.
Throws
if html is not well-formed once repaired — most often a bare <. The message names the offending line and the fix.