html_types/semantic/
document.rs1use super::Html;
2use crate::node::Node;
3
4pub struct Document {
5 pub html: Html,
6}
7
8impl<'a> From<Document> for String {
9 fn from(value: Document) -> Self {
10 let node: Node<'a> = value.html.into();
11 let text: String = node.into();
12 format!("<!DOCTYPE html>{}", text)
13 }
14}