MediaWiki  1.28.0
HtmlArmor Class Reference

Marks HTML that shouldn't be escaped. More...

Collaboration diagram for HtmlArmor:

Public Member Functions

 __construct ($value)
 

Static Public Member Functions

static getHtml ($input)
 Provide a string or HtmlArmor object and get safe HTML back. More...
 

Private Attributes

string $value
 

Detailed Description

Marks HTML that shouldn't be escaped.

Since
1.28

Definition at line 28 of file HtmlArmor.php.

Constructor & Destructor Documentation

HtmlArmor::__construct (   $value)
Parameters
string$value

Definition at line 38 of file HtmlArmor.php.

References $value.

Member Function Documentation

static HtmlArmor::getHtml (   $input)
static

Provide a string or HtmlArmor object and get safe HTML back.

Parameters
string | HtmlArmor$input
Returns
string safe for usage in HTML

Definition at line 49 of file HtmlArmor.php.

Referenced by MediaWiki\Linker\LinkRenderer\buildAElement(), MediaWiki\Linker\LinkRenderer\runLegacyBeginHook(), and HtmlArmorTest\testHtmlArmor().

Member Data Documentation

string HtmlArmor::$value
private

Definition at line 33 of file HtmlArmor.php.

Referenced by __construct().


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