Safe Haskell | None |
---|---|
Language | Haskell2010 |
Filters and transforms for HTML trees.
Synopsis
- htmlSpaceRemove :: HTMLNode -> Maybe HTMLNode
Documentation
htmlSpaceRemove :: HTMLNode -> Maybe HTMLNode Source #
Removes whitespace and comments from an HTML structure.
Document elements are not accepted, and only non-empty text nodes
and element nodes are kept. pre
, code
, samp
, and kdb
elements
are passed without modification, since whitespace is typically
significant in those elements.