See Release Notes
Long Term Support Release
(no description)
File Size: | 144 lines (5 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
HTMLPurifier_AttrDef:: (4 methods):
parseCDATA()
make()
mungeRgb()
expandCSSEscape()
Class: HTMLPurifier_AttrDef - X-Ref
Base class for all validating attribute definitions.parseCDATA($string) X-Ref |
Convenience method that parses a string as if it were CDATA. This method process a string in the manner specified at <http://www.w3.org/TR/html4/types.html#h-6.2> by removing leading and trailing whitespace, ignoring line feeds, and replacing carriage returns and tabs with spaces. While most useful for HTML attributes specified as CDATA, it can also be applied to most CSS values. |
make($string) X-Ref |
Factory method for creating this class from a string. param: string $string String construction info return: HTMLPurifier_AttrDef Created AttrDef object corresponding to $string |
mungeRgb($string) X-Ref |
Removes spaces from rgb(0, 0, 0) so that shorthand CSS properties work properly. THIS IS A HACK! param: string $string a CSS colour definition return: string |
expandCSSEscape($string) X-Ref |
Parses a possibly escaped CSS string and returns the "pure" version of it. |