public function parseTags($string)
    {
        foreach ($this->tags as $tag => $code) {
            if (strpos($string, "<{$tag}>") !== false
                || strpos($string, "</{$tag}>") !== false
            ) {
                $string = str_replace("<{$tag}>", $code, $string);
                $string = str_replace("</{$tag}>", $this->tags['default'], $string);
            }
        }

        return $string . $this->tags['default'];
    }
public function parseTags($string)
    {
        foreach ($this->tags as $tag => $code) {
            if (strpos($string, "<{$tag}>") !== false
                || strpos($string, "</{$tag}>") !== false
            ) {
                $string = str_replace("<{$tag}>", $code, $string);
                $string = str_replace("</{$tag}>", $this->tags['default'], $string);
            }
        }

        return $string . $this->tags['default'];
    }
public function parseTags ( $ string ) { foreach ( $ this -> tags as $ tag => $ code ) { if ( strpos ( $ string , "<{$tag}>" ) !== false || strpos ( $ string , "</{$tag}>" ) !== false ) { $ string = str_replace ( "<{$tag}>" , $ code , $ string ) ; $ string = str_replace ( "</{$tag}>" , $ this -> tags [ 'default' ] , $ string ) ; } } return $ string . $ this -> tags [ 'default' ] ; }
Parse tags in a string to turn them into bash escape codes.

@param string $string

@return mixed
Parse tags in a string to turn them into bash escape codes .