Function format
Source pub fn format(args: Arguments<'_>) -> String
Available on crate feature alloc only.
Expand description
Render the given attributed Arguments into a String by converting
the attributes into HTML elements.
assert_eq!(
stylish::html::format(stylish::format_args!(
"Hello {:(fg=red)}",
"Ferris"
)),
"Hello <span style=color:red>Ferris</span>",
);