public function strip_tags($html, $escapeQuotes = true)
    {
        // recursive usage
        if (Any::isArray($html)) {
            foreach ($html as $key=>$value) {
                $html[$key] = $this->strip_tags($value, $escapeQuotes);
            }
            return $html;
        }

        $text = strip_tags($html);
        if ($escapeQuotes) {
            $text = $this->escapeQuotes($text);
        }

        return $text;
    }
public function strip_tags($html, $escapeQuotes = true)
    {
        // recursive usage
        if (Any::isArray($html)) {
            foreach ($html as $key=>$value) {
                $html[$key] = $this->strip_tags($value, $escapeQuotes);
            }
            return $html;
        }

        $text = strip_tags($html);
        if ($escapeQuotes) {
            $text = $this->escapeQuotes($text);
        }

        return $text;
    }
public function strip_tags ( $ html , $ escapeQuotes = true ) { // recursive usage if ( Any :: isArray ( $ html ) ) { foreach ( $ html as $ key => $ value ) { $ html [ $ key ] = $ this -> strip_tags ( $ value , $ escapeQuotes ) ; } return $ html ; } $ text = strip_tags ( $ html ) ; if ( $ escapeQuotes ) { $ text = $ this -> escapeQuotes ( $ text ) ; } return $ text ; }
String html tags and escape quotes
@param string|array $html
@param boolean $escapeQuotes
@return string|array|null
String html tags and escape quotes