Prado\Web\THttpUtility::htmlDecode PHP Method

htmlDecode() public static method

It is the inverse of {@link htmlEncode}.
public static htmlDecode ( $s ) : string
return string decoded string
    public static function htmlDecode($s)
    {
        return strtr($s, self::$_decodeTable);
    }

Usage Example

Example #1
0
 public function testHtmlDecode()
 {
     $html = THttpUtility::htmlDecode('<tag key="value">');
     self::assertEquals('<tag key="value">', $html);
 }