Function write_opening_tag

Source
pub fn write_opening_tag<Str>(
    output: &mut dyn Write,
    tag: &str,
    attributes: impl IntoIterator<Item = (Str, Str)>,
) -> Result<()>
where Str: AsRef<str>,
Expand description

Writes an opening HTML tag, using an iterator to enumerate the attributes. Note that attribute values are automatically escaped.