filter

package
v2.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2023 License: MIT Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL