Expand description
fhtml - Rust formatting macros for HTML.
fhtml provides familiar formatting macros such as write!, format!,
println!, concat!, etc, but tailored for HTML.
Escaping of values is done manually.
Macros§
- concat
- Creates a &’static str with formatted HTML.
- format
- Writes formatted HTML with embedded expressions to a
String. - format_
args - A low level macro for creating an
fmt::Argumentswith formatted HTML. - format_
args_ nl - Creates an [
fmt::Arguments] with a newline (<br>) appended. - write
- Write formatted HTML to a buffer.
- writeln
- Writes formatted HTML to a buffer with a newline (
<br>) appended.
Functions§
- escape
- Escapes special HTML characters in a string.