zenacy-html-2.0.2: A standard compliant HTML parsing library

Safe HaskellNone
LanguageHaskell2010

Zenacy.HTML.Internal.Filter

Description

Filters and transforms for HTML trees.

Synopsis

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.