Sabberworm\CSS\Settings
Parser settings class.
Configure parser behaviour here.
Synopsis
class Settings
{
- // members
- public $bMultibyteSupport;
- public string $sDefaultCharset = 'utf-8';
- public boolean $bLenientParsing = true;
- // methods
- private void __construct()
- public static void create()
- public void withMultibyteSupport()
- public void withDefaultCharset()
- public void withLenientParsing()
- public void beStrict()
Members
public
-
$bLenientParsing
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
The default charset for the CSS if no `@charset` rule is found. Defaults to utf-8.