Omeka_Filter_HtmlPurifier¶
- class Omeka_Filter_HtmlPurifier¶
Package: Filter
A Zend_Filter implementation that uses HtmlPurifier to purify a string.
- property _purifier¶
- property _purifierConfig¶
- filter($value)¶
Filter the value
Parameters: - $value (unknown) –
Returns: string An html purified string
- getDefaultAllowedHtmlElements()¶
Get the default allowed html elements.
Returns: array An array of strings corresponding to the allowed html elements
- getDefaultAllowedHtmlAttributes()¶
Get the default allowed html attributes.
Returns: array An array of strings corresponding to the allowed html attributes
- getHtmlPurifier()¶
Gets the html purifier singleton
Returns: HTMLPurifier $purifier
- setHtmlPurifier(HTMLPurifier $purifier)¶
Sets the html purifier singleton
Parameters: - $purifier (HTMLPurifier) –
Returns: void
- createHtmlPurifier(array $allowedHtmlElements, array $allowedHtmlAttributes)¶
Parameters: - $allowedHtmlElements (array) – An array of strings representing allowed HTML elements
- $allowedHtmlAttributes (array) – An array of strings representing allowed HTML attributes
Returns: HTMLPurifier
- filterAttributesWithMissingElements($htmlAttributes = Array, $htmlElements = Array)¶
Parameters: - $htmlAttributes (unknown) –
- $htmlElements (unknown) –