html!() { /* proc-macro */ }
Expand description

Converts HTML to String.

See syn-rsx docs for supported tags and syntax.

Example

let world = "planet";
assert_eq!(html_to_string_macro::html!(<div>"hello "{world}</div>), "<div>hello planet</div>");