Struct El
paige
pub struct El { pub name: String, pub is_text: bool, pub paired: bool, pub attributes: Vec<Attr>, pub style: Vec<Prop>, pub content: Vec<El>, }
An HTML element.
name: String
is_text: bool
paired: bool
attributes: Vec<Attr>
style: Vec<Prop>
content: Vec<El>
impl El
pub fn text<N: Into<String>>(text: N) -> Self
Creates a new element that displays its name as text and nothing else when formatted. This is useful for making innerHTML something other than a tag, such as inside the