PHP Class HtmLawedPlugin, vanilla

Inheritance: extends Gdn_Plugin
Mostrar archivo Open project: vanilla/vanilla

Protected Properties

Property Type Description
$allowedClasses Classes users may have in their content.
$classedElements HTML elements allowed to have classes in user generated content.

Public Methods

Method Description
format ( string $html ) : string Filter provided HTML through htmlLawed and return the result.
setup ( ) No setup.

Method Details

format() public method

Filter provided HTML through htmlLawed and return the result.
public format ( string $html ) : string
$html string String of HTML to filter.
return string Returns the filtered HTML.

setup() public method

No setup.
public setup ( )

Property Details

$allowedClasses protected_oe property

Classes users may have in their content.
protected $allowedClasses

$classedElements protected_oe property

HTML elements allowed to have classes in user generated content.
protected $classedElements