bobzhang/docx2html/html does not have a README file

HtmlNode

pub(all) enum HtmlNode {
Element(tag~ : String, attributes~ : Map[String, String], children~ : Array[HtmlNode], fresh~ : Bool, separator~ : String?)
TextNode(String)
ForceWrite
} derive(Eq,
Debug
)

Node in the intermediate HTML tree.

HtmlNode::equal

#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn HtmlNode::equal(HtmlNode, HtmlNode) -> Bool

HtmlNode::not_equal

#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn HtmlNode::not_equal(x : HtmlNode, y : HtmlNode) -> Bool

HtmlNode::to_repr

#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn HtmlNode::to_repr(HtmlNode) ->
Repr

escape_html

fn escape_html(value : String) -> String

Escapes text for HTML content.

escape_html_attribute

fn escape_html_attribute(value : String) -> String

Escapes text for an HTML attribute value.

escape_markdown_text

fn escape_markdown_text(value : String) -> String

Escapes text for Markdown output.

fresh_html_element

fn fresh_html_element(tag : String, attributes? : Map[String, String], children? : Array[HtmlNode], separator? : String) -> HtmlNode

Builds an HTML element with a fresh generated id.

html_element

fn html_element(tag : String, attributes? : Map[String, String], children? : Array[HtmlNode], fresh? : Bool, separator? : String) -> HtmlNode

Builds an HTML element node.

html_text

fn html_text(value : String) -> HtmlNode

Builds an HTML text node.

is_void_html_tag

fn is_void_html_tag(tag : String) -> Bool

Returns whether a tag is serialized without an end tag.

simplify_html

fn simplify_html(nodes : Array[HtmlNode]) -> Array[HtmlNode]

Simplifies adjacent and redundant HTML nodes.

write_html

fn write_html(nodes : Array[HtmlNode], pretty_print? : Bool) -> String

Serializes HTML nodes to a string.

write_markdown

fn write_markdown(nodes : Array[HtmlNode]) -> String

Serializes HTML nodes to Markdown.

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io