Skip to content
Prev Previous commit
Next Next commit
Change docs
  • Loading branch information
loovjo committed Apr 27, 2023
commit 869abe560e4870849ad8c566ea6ae683c8ee441d
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ pub enum Doctype {
#[derive(Debug, Clone)]
pub enum Node {
Element(Element),
/// A text node in the DOM. The contents of the Text has all entities expanded,
/// for example parsing `I &lt;3 HTML` would result in a `Text("I <3 HTML")`
/// A text node in the DOM. The contents of the `Text` has all entities expanded.
/// For example parsing `I &lt;3 HTML` would result in a `Text("I <3 HTML")`.
///
/// Note that `<script>` and `<style>` are considered special, and entities inside
/// are not expanded. This is also respected when serializing a `<script>` or
/// `<style>` element using [Htmlifiable::html](operation::Htmlifiable::html)
/// `<style>` element using [Htmlifiable::html](operation::Htmlifiable::html).
Text(String),
Comment(String),
Doctype(Doctype),
Expand Down