pub fn format(args: Arguments<'_>) -> String
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>",
);