MediaWiki REL1_37
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.
 

Private Attributes

string null $value
 

Detailed Description

Marks HTML that shouldn't be escaped.

@newable

Since
1.28

Definition at line 30 of file HtmlArmor.php.

Constructor & Destructor Documentation

◆ __construct()

HtmlArmor::__construct (   $value)
Stability: stable
to call
Parameters
string | null$value

Definition at line 42 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 54 of file HtmlArmor.php.

Member Data Documentation

◆ $value

string null HtmlArmor::$value
private

Definition at line 35 of file HtmlArmor.php.

Referenced by __construct().


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