html

Runtime support for the stdlib HTML syntax macro.

API Reference

Protocols

protocol RenderHtml

Converts a value to an HTML-safe string; the default escapes its Showable representation.

Structs

struct Markup

An HTML fragment trusted for direct insertion into a rendered document.

struct PreEscaped

Text explicitly marked as already escaped or known-safe HTML.

Globals

let DOCTYPE

The HTML5 doctype declaration as trusted markup.

Functions