HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulehakyll-4.17.0.0Haskell2010

Hakyll.Web.Html

Provides utilities to manipulate HTML pages

Contents
  1. Generic
  2. Headers
  3. Url manipulation
  4. Stripping/escaping
Synopsis
  • Packagehakyll-4.17.0.0
  • Exports12
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceHtml.hs

Generic

Headers

Url manipulation

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

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"