HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Moduletagsoup-0.14.8Haskell2010

Text.HTML.TagSoup.Entity

This module converts between HTML/XML entities (i.e. &) and the characters they represent.

  • 6 values
  • Packagetagsoup-0.14.8
  • Exports6
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceEntity.hs

Lookup a numeric entity, the leading '#' must have already been removed.

lookupNumericEntity "65" == Just "A"
lookupNumericEntity "x41" == Just "A"
lookupNumericEntity "x4E" === Just "N"
lookupNumericEntity "x4e" === Just "N"
lookupNumericEntity "X4e" === Just "N"
lookupNumericEntity "Haskell" == Nothing
lookupNumericEntity "" == Nothing
lookupNumericEntity "89439085908539082" == Nothing
valueescapeXML :: String -> String
#

Escape an XML string.

escapeXML "hello world" == "hello world"
escapeXML "hello & world" == "hello & world"
valuexmlEntities :: [(String, String)]
#

A table mapping XML entity names to resolved strings. All strings are a single character long.