Class \Prado\Web\UI\WebControls\TSafeHtml
TSafeHtml class
TSafeHtml is a control that strips down all potentially dangerous HTML content. It is mainly a wrapper of HTMLPurifier project.
To use TSafeHtml, simply enclose the content to be secured within the body of TSafeHtml in a template.
You can specify a custom configuration for HTMLPurifier using the \Prado\Web\UI\WebControls\setConfig property. Please refer to the HTMLPurifier documentation for the possibile configuration parameters.
Class hierarchy
- \Prado\Web\UI\WebControls\TSafeHtml
-
\Prado\Web\UI\TControl implements IRenderable, IBindable
-
\Prado\TApplicationComponent
-
\Prado\TComponent
Since: 3.0
public
|
|
public
|
render(THtmlWriter $writer) : mixed
Renders body content.
This method overrides parent implementation by removing malicious code from the body content |
public
|
|
protected
|