Prado\Web\THttpUtility::htmlDecode PHP Метод

htmlDecode() публичный статический Метод

It is the inverse of {@link htmlEncode}.
public static htmlDecode ( $s ) : string
Результат string decoded string
    public static function htmlDecode($s)
    {
        return strtr($s, self::$_decodeTable);
    }

Usage Example

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