public function unAutoParagraph($string)
    {
        $string = str_replace(array("<p>","</p>","<br/>", "<br />"), array("", "\n\n", "\n", "\n"), $string);

        $string = preg_replace("/\<a href\=\"(".URLUtils::URL_MATCH.")\"\>\\1\<\/a\>/i", '$1', $string);
        $string = preg_replace_callback("/\<a href\=\"(".URLUtils::URL_MATCH.")\"\>(.+)\.\.\.\<\/a\>/iU",
            array($this, 'linkMatches'), $string);

        return $string;
    }
public function unAutoParagraph($string)
    {
        $string = str_replace(array("<p>","</p>","<br/>", "<br />"), array("", "\n\n", "\n", "\n"), $string);

        $string = preg_replace("/\<a href\=\"(".URLUtils::URL_MATCH.")\"\>\\1\<\/a\>/i", '$1', $string);
        $string = preg_replace_callback("/\<a href\=\"(".URLUtils::URL_MATCH.")\"\>(.+)\.\.\.\<\/a\>/iU",
            array($this, 'linkMatches'), $string);

        return $string;
    }
public function unAutoParagraph ( $ string ) { $ string = str_replace ( array ( "<p>" , "</p>" , "<br/>" , "<br />" ) , array ( "" , "\n\n" , "\n" , "\n" ) , $ string ) ; $ string = preg_replace ( "/\<a href\=\"(" . URLUtils :: URL_MATCH . ")\"\>\\1\<\/a\>/i" , '$1' , $ string ) ; $ string = preg_replace_callback ( "/\<a href\=\"(" . URLUtils :: URL_MATCH . ")\"\>(.+)\.\.\.\<\/a\>/iU" , array ( $ this , 'linkMatches' ) , $ string ) ; return $ string ; }
Removes the markup added by autoParagraph.

This will restore the string to a version that's safe to display in a simple <textarea> editor.
All autolinked urls are unlinked and paragraph tags are removed.

@param string $string The string that will be deconverted

@return string A version of $string suitable for editing in a <textarea>

@see autoParagraph()
Removes the markup added by autoParagraph .