(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. return: HTMLPurifier_AttrDef Created AttrDef object corresponding to $string param: string $string String construction info |
mungeRgb($string) X-Ref |
Removes spaces from rgb(0, 0, 0) so that shorthand CSS properties work properly. THIS IS A HACK! return: string param: string $string a CSS colour definition |
expandCSSEscape($string) X-Ref |
Parses a possibly escaped CSS string and returns the "pure" version of it. |