protected function _cellWidth($text)
    {
        if (strpos($text, '<') === false && strpos($text, '>') === false) {
            return mb_strwidth($text);
        }
        $styles = array_keys($this->_io->styles());
        $tags = implode('|', $styles);
        $text = preg_replace('#</?(?:' . $tags . ')>#', '', $text);

        return mb_strwidth($text);
    }
protected function _cellWidth($text)
    {
        if (strpos($text, '<') === false && strpos($text, '>') === false) {
            return mb_strwidth($text);
        }
        $styles = array_keys($this->_io->styles());
        $tags = implode('|', $styles);
        $text = preg_replace('#</?(?:' . $tags . ')>#', '', $text);

        return mb_strwidth($text);
    }
protected function _cellWidth ( $ text ) { if ( strpos ( $ text , '<' ) === false && strpos ( $ text , '>' ) === false ) { return mb_strwidth ( $ text ) ; } $ styles = array_keys ( $ this -> _io -> styles ( ) ) ; $ tags = implode ( '|' , $ styles ) ; $ text = preg_replace ( '#</?(?:' . $ tags . ')>#' , '' , $ text ) ; return mb_strwidth ( $ text ) ; }
Get the width of a cell exclusive of style tags.

@param string $text The text to calculate a width for.
@return int The width of the textual content in visible characters.
Get the width of a cell exclusive of style tags .