Cow_htmlSource(X)HTML library
to_string html is a valid (X)HTML5 polyglot string corresponding to the html structure.
of_string ?enc html_str is the tree representation of html_str as decoded by enc. For more information about the default encoding, see Encoding.
Note that this function converts all standard entities into their corresponding UTF-8 symbol.
val output :
?nl:bool ->
?indent:int option ->
?ns_prefix:(string -> string option) ->
Xmlm.dest ->
t ->
unitOutputs valid (X)HTML5 polyglot text from a t. Only non-void element handling is implemented so far. For more information about the parameters, see Xmlm.make_output.
val output_doc :
?nl:bool ->
?indent:int option ->
?ns_prefix:(string -> string option) ->
Xmlm.dest ->
t ->
unitOutputs a valid (X)HTML5 polyglot document from a t. Only non-void element handling and HTML5 DOCTYPE is implemented so far. For more information about the parameters, see Xmlm.make_output.
type rel = [ | `alternate| `bookmark| `help| `license| `next| `nofollow| `noreferrer| `prefetch| `prev| `search| `tag ]val a :
?hreflang:string ->
?rel:rel ->
?target:target ->
?ty:string ->
?title:string ->
?cls:string ->
href:Uri.t ->
t ->
ta href html generate a link from html to href.
The type for nodes.