Skip to main content

tag

Function tag 

Source
pub fn tag(
    name: &str,
    attrs: &[(&str, &str)],
    children: TagContent<'_>,
) -> String
Expand description

Build an XML tag with optional attributes and children.

If children is a string, it is escaped. If children is an array of pre-built strings, they are concatenated as-is.