PHP Class HtmLawedPlugin, vanilla

Inheritance: extends Gdn_Plugin
Afficher le fichier Open project: vanilla/vanilla

Protected Properties

Свойство Type Description
$allowedClasses Classes users may have in their content.
$classedElements HTML elements allowed to have classes in user generated content.

Méthodes publiques

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

Method Details

format() public méthode

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

setup() public méthode

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