css-sanitizer
Classes to parse and sanitize CSS
Loading...
Searching...
No Matches
Wikimedia\CSS\Parser\Encoder Class Reference

Character set conversion for CSS. More...

Static Public Member Functions

static convert ( $text, $encodings=[])
 Convert CSS text to UTF-8.
 

Static Protected Member Functions

static doConvert ( $encoding, $text)
 Actually perform the conversion.
 

Static Protected Attributes

static $encodings
 

Detailed Description

Member Function Documentation

◆ convert()

static Wikimedia\CSS\Parser\Encoder::convert ( $text,
$encodings = [] )
static

Convert CSS text to UTF-8.

Parameters
string$textText being detected
string[]$encodingsEncodings to use at various points in the algorithm:
  • transport: Encoding from HTTP or the like
  • environment: Encoding from HTML <link> or the like
Returns
string

◆ doConvert()

static Wikimedia\CSS\Parser\Encoder::doConvert ( $encoding,
$text )
staticprotected

Actually perform the conversion.

Parameters
string$encoding
string$text
Returns
string

The documentation for this class was generated from the following file: