hakyll-3.2.7.1: A static website compiler library

Safe HaskellSafe-Infered

Hakyll.Web.Util.Html

Description

Miscellaneous HTML manipulation functions

Synopsis

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 &amp; Dean"