Class HTMLPurifier_AttrDef_HTML_Length
| Inheritance | HTMLPurifier_AttrDef_HTML_Length » HTMLPurifier_AttrDef_HTML_Pixels » HTMLPurifier_AttrDef |
|---|---|
| Subclasses | HTMLPurifier_AttrDef_HTML_MultiLength |
Validates the HTML type length (not to be confused with CSS's length).
This accepts integer pixels or percentages as lengths for certain HTML attributes.
Public Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $minimized | Tells us whether or not an HTML attribute is minimized. | HTMLPurifier_AttrDef | |
| $required | Tells us whether or not an HTML attribute is required. | HTMLPurifier_AttrDef |
Protected Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $max | HTMLPurifier_AttrDef_HTML_Pixels |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | HTMLPurifier_AttrDef_HTML_Pixels | |
| make() | HTMLPurifier_AttrDef_HTML_Pixels | |
| parseCDATA() | Convenience method that parses a string as if it were CDATA. | HTMLPurifier_AttrDef |
| validate() | HTMLPurifier_AttrDef_HTML_Length |
Protected Methods
| Method | Description | Defined By |
|---|---|---|
| expandCSSEscape() | Parses a possibly escaped CSS string and returns the "pure" version of it. | HTMLPurifier_AttrDef |
| mungeRgb() | Removes spaces from rgb(0, 0, 0) so that shorthand CSS properties work properly. THIS IS A HACK! | HTMLPurifier_AttrDef |
Method Details
| public bool|string validate ( $string, $config, $context ) | ||
| $string | string | |
| $config | HTMLPurifier_Config | |
| $context | HTMLPurifier_Context | |