Copyright | (c) 2016 Dylan Simon |
---|---|
License | BSD3 |
Maintainer | https://github.com/blaze-builder |
Stability | stable |
Safe Haskell | Safe-Inferred |
Language | Haskell98 |
Write
s and Builder
s for serializing HTML escaped Word8
characters
and ByteString
s that have already been appropriately encoded into HTML by
escaping basic ASCII character references but leaving other bytes untouched.
Synopsis
Documentation
Writing HTML escaped bytes to a buffer
writeHtmlEscapedWord :: Word8 -> Write Source #
Write a HTML escaped byte to a bufffer.
Creating Builders from HTML escaped bytes
fromHtmlEscapedWord :: Word8 -> Builder Source #
O(1). Serialize a HTML escaped byte.
fromHtmlEscapedWordList :: [Word8] -> Builder Source #
O(n). Serialize a HTML escaped list of bytes.
fromHtmlEscapedByteString :: ByteString -> Builder Source #
O(n). Serialize a HTML escaped ByteString
.
fromHtmlEscapedLazyByteString :: ByteString -> Builder Source #
O(n). Serialize a HTML escaped lazy ByteString
.