Property | Type | Description | |
---|---|---|---|
$_rules | |||
$locale | The default locale (used by some Fixer) | ||
$protectedTags | HTML Tags to bypass | ||
$stateBag |
Method | Description | |
---|---|---|
__construct ( array $rules ) | ||
fix ( string $content ) : string | ||
fixString ( string $content ) : string | ||
getLanguageFromLocale ( $locale ) : string | Get language part of a Locale string (fr_FR => fr). | |
getLocale ( ) : string | Get the current Locale tag. | |
setLocale ( string $locale ) | Change the locale of the Fixer. | |
setProtectedTags ( array $protectedTags ) | Customize the list of protected tags. | |
setRules ( array $rules ) | Change the list of rules for a given locale. |
Method | Description | |
---|---|---|
compileRules ( $rules ) | Build the _rules array of Fixer. | |
doFix ( DOMText $childNode, DOMNode $node, DOMDocument $dom ) | Run the Fixers on a DOMText content. | |
exportDOMDocument ( DOMDocument $dom ) : string | ||
fixContentEncoding ( $content ) : string | Convert the content encoding properly and add Content-Type meta if HTML document. | |
loadDOMDocument ( $content ) : DOMDocument | ||
processDOM ( DOMNode $node, DOMDocument $dom ) | Loop over all the DOMNode recursively. |
public static getLanguageFromLocale ( $locale ) : string | ||
$locale | ||
return | string |
public setProtectedTags ( array $protectedTags ) | ||
$protectedTags | array |