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.
 

Detailed Description

Marks HTML that shouldn't be escaped.

Stability: 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 43 of file HtmlArmor.php.

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 55 of file HtmlArmor.php.


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