blaze-builder-0.4.4.1: Efficient buffered output.

Copyright | (c) 2016 Dylan Simon
License | BSD3
Maintainer | https://github.com/blaze-builder
Stability | stable
Safe Haskell | None
Language | Haskell98

Blaze.ByteString.Builder.Html.Word

Contents

- Writing HTML escaped bytes to a buffer
- Creating Builders from HTML escaped bytes

Description

`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

- wordHtmlEscaped :: BoundedPrim Word8
- writeHtmlEscapedWord :: Word8 -> Write
- fromHtmlEscapedWord :: Word8 -> Builder
- fromHtmlEscapedWordList :: [Word8] -> Builder
- fromHtmlEscapedByteString :: ByteString -> Builder
- fromHtmlEscapedLazyByteString :: ByteString -> Builder

# Documentation

wordHtmlEscaped :: BoundedPrim Word8 Source #

# 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`.