MediaWiki  master
HtmlArmor Class Reference

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

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 null $value
 

Detailed Description

Marks HTML that shouldn't be escaped.

Since
1.28

Definition at line 28 of file HtmlArmor.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 38 of file HtmlArmor.php.

References $value.

Member Function Documentation

◆ getHtml()

static HtmlArmor::getHtml (   $input)
static

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

Parameters
string | HtmlArmor$input
Returns
string|null safe for usage in HTML, or null if the HtmlArmor instance was wrapping null.

Definition at line 50 of file HtmlArmor.php.

Referenced by MediaWiki\Linker\LinkRenderer\buildAElement(), WebInstaller\getInfoBox(), and MediaWiki\Linker\LinkRenderer\runLegacyBeginHook().

Member Data Documentation

◆ $value

string null 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: