HORIZON HASKELLDocslts/ghc-10.0.x8c2f8e82026-10-19Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8c2f8e8 · 2026-10-19

Modulehakyll-4.17.0.0Haskell2010

Hakyll.Web.Html

Provides utilities to manipulate HTML pages

  • 12 values
  • Packagehakyll-4.17.0.0
  • Exports12
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceHtml.hs

Generic

3 declarations

Headers

2 declarations

Url manipulation

5 declarations
valuetoUrl :: FilePath -> String
#

Convert a filepath to an URL starting from the site root

Example:

toUrl "foo/bar.html"

Result:

"/foo/bar.html"

This also sanitizes the URL, e.g. converting spaces into '%20'

Stripping/escaping

2 declarations
valuestripTags :: String -> String
#

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"