Bitrix Site Manager

htmlspecialcharsBack

string
htmlspecialcharsBack(
 string text
)

The function htmlspecialcharsBack converts text from HTML safe format to the human-readable form, performing the following substitutions:
Original symbolsAfter replacement
&lt; <
&gt; >
&quot; "
&amp; &

Parameters

ParameterDescription
text Text to be converted.

See Also

Example



<?
$text = '&quot;if a&gt;b and b&gt;c then a&gt;c&quot;'
$res = htmlspecialcharsBack($str);
// $res now contains: 
// "if a>b and b>c then a>c"
?>