-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | A codec library for HTML-escaped text and HTML-entities -- -- This library provides the following APIs for coding and decoding of -- HTML-escaped text: -- -- @package html-entities @version 1.1.2 module HTMLEntities.Builder -- | HTML-encodes the given char into a text builder. char :: Char -> Builder -- | HTML-encodes the given text into a text builder. -- --
--   >>> Data.Text.Lazy.IO.putStrLn $ Data.Text.Lazy.Builder.toLazyText $ text "<a href=\"\">"
--   &lt;a href=&quot;&quot;&gt;
--   
text :: Text -> Builder -- | Attoparsec parsers. module HTMLEntities.Parser -- | A parser of a single entity. -- -- Parses numeric encoding: -- --
--   >>> mapM_ Data.Text.IO.putStrLn $ Data.Attoparsec.Text.parseOnly htmlEntity "&#169;"
--   ©
--   
-- -- as well as named entities: -- --
--   >>> mapM_ Data.Text.IO.putStrLn $ Data.Attoparsec.Text.parseOnly htmlEntity "&copy;"
--   ©
--   
htmlEntity :: Parser Text -- | Utilities, which execute the parser. module HTMLEntities.Decoder -- | A decoder of a single entity. -- --
--   >>> mapM_ Data.Text.IO.putStrLn $ htmlEntity "&#169;"
--   ©
--   
htmlEntity :: Text -> Either String Text -- | A decoder of a text with entities. -- -- Produces a text builder, which you can then convert into a text or a -- lazy text, using the "text" or "conversion-text" -- library. -- --
--   >>> Data.Text.Lazy.IO.putStrLn $ Data.Text.Lazy.Builder.toLazyText $ htmlEncodedText "&euro;5 &cent;2"
--   €5 ¢2
--   
htmlEncodedText :: Text -> Builder module HTMLEntities.Text -- | HTML-encodes the given char. char :: Char -> Text -- | HTML-encodes the given text. -- --
--   >>> Data.Text.IO.putStrLn $ text "<a href=\"\">"
--   &lt;a href=&quot;&quot;&gt;
--   
text :: Text -> Text