Skip to main content

Module markup

Module markup 

Source
Expand description

The markup value: a string of HTML that the HTML sink writes without escaping it.

Everything else the HTML backend writes is escaped where it is written (super::escape), so a document cannot put a < into the output. A Markup value is one of two exceptions; the other is the content of a <style> or a <script>, which HtmlSink::raw_text_element writes. Markup is a type of its own so that the exception is easy to find: a reader looking for every place where markup enters an HTML page unescaped looks for the two constructors of Markup.

Structs§

Markup
A string of HTML that the sink writes unchanged, without escaping.