src/Captioning/Format/SubripCue.php
public function getStrippedText($_stripBasic = false, $_replacements = array())
    {
        $text = $this->text;

        if ($_stripBasic) {
            $text = strip_tags($text);
        }

        $patterns = "/{[^}]+}/";
        $repl = "";
        $text = preg_replace($patterns, $repl, $text);

        if (count($_replacements) > 0) {
            $text = str_replace(array_keys($_replacements), array_values($_replacements), $text);
            $text = iconv('UTF-8', 'UTF-8//IGNORE', $text);
        }

        return $text;
    }
public function getStrippedText($_stripBasic = false, $_replacements = array())
    {
        $text = $this->text;

        if ($_stripBasic) {
            $text = strip_tags($text);
        }

        $patterns = "/{[^}]+}/";
        $repl = "";
        $text = preg_replace($patterns, $repl, $text);

        if (count($_replacements) > 0) {
            $text = str_replace(array_keys($_replacements), array_values($_replacements), $text);
            $text = iconv('UTF-8', 'UTF-8//IGNORE', $text);
        }

        return $text;
    }
public function getStrippedText ( $ _stripBasic = false , $ _replacements = array ( ) ) { $ text = $ this -> text ; if ( $ _stripBasic ) { $ text = strip_tags ( $ text ) ; } $ patterns = "/{[^}]+}/" ; $ repl = "" ; $ text = preg_replace ( $ patterns , $ repl , $ text ) ; if ( count ( $ _replacements ) > 0 ) { $ text = str_replace ( array_keys ( $ _replacements ) , array_values ( $ _replacements ) , $ text ) ; $ text = iconv ( 'UTF-8' , 'UTF-8//IGNORE' , $ text ) ; } return $ text ; }
Return the text without Advanced SSA tags

@param boolean $_stripBasic If true, <i>, <b> and <u> tags will be stripped
@param array $_replacements
@return string
Return the text without Advanced SSA tags