Sabberworm/PHP-CSS-Parser
8.1.0
A Parser for CSS Files written in PHP. Allows extraction of CSS files into a data structure, manipulation of said structure and output as (optimized) CSS
|
Parser settings class. More...
Public Member Functions | |
withMultibyteSupport ($bMultibyteSupport=true) | |
withDefaultCharset ($sDefaultCharset) | |
withLenientParsing ($bLenientParsing=true) | |
beStrict () | |
Static Public Member Functions | |
static | create () |
Public Attributes | |
$bMultibyteSupport | |
Multi-byte string support. More... | |
$sDefaultCharset = 'utf-8' | |
The default charset for the CSS if no @charset rule is found. More... | |
$bLenientParsing = true | |
Lenient parsing. More... | |
Parser settings class.
Configure parser behaviour here.
$bLenientParsing = true |
Lenient parsing.
When used (which is true by default), the parser will not choke on unexpected tokens but simply ignore them.
$bMultibyteSupport |
Multi-byte string support.
If true (mbstring extension must be enabled), will use (slower) mb_strlen, mb_convert_case, mb_substr and mb_strpos functions. Otherwise, the normal (ASCII-Only) functions will be used.
$sDefaultCharset = 'utf-8' |
The default charset for the CSS if no @charset
rule is found.
Defaults to utf-8.