|
|
|
|
Synopsis |
|
|
|
Documentation |
|
|
Parse a string to a list of tags, using an HTML 5 compliant parser.
parseTags "<hello>my&</world>" == [TagOpen "hello" [],TagText "my&",TagClose "world"]
|
|
|
Parse a string to a list of tags, using settings supplied by the ParseOptions parameter,
eg. to output position information:
parseTagsOptions parseOptions{optTagPosition = True} "<hello>my&</world>" ==
[TagPosition 1 1,TagOpen "hello" [],TagPosition 1 8,TagText "my&",TagPosition 1 15,TagClose "world"]
|
|
|
These options control how parseTags works.
| Constructors | ParseOptions | | optTagPosition :: Bool | Should TagPosition values be given before some items (default=False,fast=False)
| optTagWarning :: Bool | Should TagWarning values be given (default=False,fast=False)
| optEntityData :: (str, Bool) -> [Tag str] | How to lookup an entity (Bool = has ending ';')
| optEntityAttrib :: (str, Bool) -> (str, [Tag str]) | How to lookup an entity in an attribute (Bool = has ending ';'?)
| optTagTextMerge :: Bool | Require no adjacent TagText values (default=True,fast=False)
|
|
| Instances | |
|
|
|
The default parse options value, described in ParseOptions.
|
|
|
A ParseOptions structure optimised for speed, following the fast options.
|
|
Produced by Haddock version 2.4.2 |