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

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

This method strips the following characters from a string: HTML entities: <, >, "
public static htmlStrip ( $s ) : string
Результат string encoded string
    public static function htmlStrip($s)
    {
        return strtr($s, self::$_stripTable);
    }

Usage Example

Пример #1
0
 /**
  * Removes the named stylesheet attribute from rendering
  * @param string name of the stylesheet attribute to be removed
  */
 public function removeStyleAttribute($name)
 {
     unset($this->_styles[THttpUtility::htmlStrip($name)]);
 }