HTMLPurifier 4.4.0
HTMLPurifier_AttrDef_Lang Class Reference

Validates the HTML attribute lang, effectively a language code. More...

Inheritance diagram for HTMLPurifier_AttrDef_Lang:
HTMLPurifier_AttrDef HTMLPurifier_AttrDef

List of all members.

Public Member Functions

 validate ($string, $config, $context)
 Validates and cleans passed string according to a definition.
 validate ($string, $config, $context)
 Validates and cleans passed string according to a definition.

Detailed Description

Validates the HTML attribute lang, effectively a language code.

Note:
Built according to RFC 3066, which obsoleted RFC 1766

Definition at line 7 of file Lang.php.


Member Function Documentation

HTMLPurifier_AttrDef_Lang::validate ( string,
config,
context 
)

Validates and cleans passed string according to a definition.

Parameters:
$stringString to be validated and cleaned.
$configMandatory HTMLPurifier_Config object.
$contextMandatory HTMLPurifier_AttrContext object.

Reimplemented from HTMLPurifier_AttrDef.

Definition at line 10 of file Lang.php.

HTMLPurifier_AttrDef_Lang::validate ( string,
config,
context 
)

Validates and cleans passed string according to a definition.

Parameters:
$stringString to be validated and cleaned.
$configMandatory HTMLPurifier_Config object.
$contextMandatory HTMLPurifier_AttrContext object.

Reimplemented from HTMLPurifier_AttrDef.

Definition at line 8446 of file HTMLPurifier.standalone.php.


The documentation for this class was generated from the following files: