Documentation ¶
Overview ¶
Package filter implements a transform.Transformer that performs the Unicode code point filtering preprocessing step defined in CSS Syntax Module Level 3, section 3.3:
"To filter code points from a stream of (unfiltered) code points input:
"Replace any U+000D CARRIAGE RETURN (CR) code points, U+000C FORM FEED (FF) code points, or pairs of U+000D CARRIAGE RETURN (CR) followed by U+000A LINE FEED (LF) in input by a single U+000A LINE FEED (LF) code point.
"Replace any U+0000 NULL or surrogate code points in input with U+FFFD REPLACEMENT CHARACTER (�)."
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DecodeError = fmt.Errorf("error decoding input (not valid UTF8)")
Functions ¶
func Transformer ¶
func Transformer() transform.Transformer
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.