Skip to main content

serialize_html_to_string

Function serialize_html_to_string 

Source
pub fn serialize_html_to_string(doc: &Document) -> String
Expand description

Serialize an arena Document as HTML5. Emits the DOCTYPE if the document carries one, never emits an XML declaration, uses HTML5 void- element / raw-text / boolean-attribute conventions. Same shape as crate::serialize_html_to_string but accepts the arena tree.