Safe Haskell | Safe-Infered |
---|
Miscellaneous HTML manipulation functions
Documentation
stripTags :: String -> StringSource
Strip all HTML tags from a string
Example:
stripTags "<p>foo</p>"
Result:
"foo"
This also works for incomplete tags
Example:
stripTags "<p>foo</p"
Result:
"foo"
escapeHtml :: String -> StringSource
HTML-escape a string
Example:
escapeHtml "Me & Dean"
Result:
"Me & Dean"