|
|
|
|
Synopsis |
|
|
|
Documentation |
|
|
An HTML element, a document is [T].
There is no requirement for Open and Close to match.
The type parameter string lets you choose between
[Char] for interpreted HTML entity references and
[HTMLChar.T] for uninterpreted HTML entities.
You will most oftenly want plain Char,
since HTMLChar.T is only necessary if you want to know,
whether a non-ASCII character was encoded as HTML entity
or as non-ASCII Unicode character.
| Constructors | Open (Name name) [T name string] | An open tag with Ts in their original order.
| Close (Name name) | A closing tag
| Text string | A text node, guaranteed not to be the empty string
| Comment String | A comment
| Special (Name name) String | A tag like <!DOCTYPE ...>
| Processing (Name name) (T name string) | A tag like <?xml ...>
| Warning String | Mark a syntax error in the input file
|
| Instances | |
|
|
|
Constructors | | Instances | |
|
|
|
|
|
|
|
Test if a T is a Open
|
|
|
|
|
|
|
Test if a T is a Close
|
|
|
|
text :: string -> T name string | Source |
|
|
|
Test if a T is a Text
|
|
|
Extract the string from within Text, otherwise Nothing
|
|
|
Extract all text content from tags (similar to Verbatim found in HaXml)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
processing :: Name name -> T name string -> T name string | Source |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
textFromCData :: (Tag name, C char) => T name [char] -> T name [char] | Source |
|
Replace CDATA sections by plain text.
|
|
concatTexts :: Monoid string => [T name string] -> [T name string] | Source |
|
Merge adjacent Text sections.
|
|
|
Modify content of a Text or a CDATA part.
|
|
|
|
Produced by Haddock version 2.6.0 |