try and get unadulterated bb2md2html2bb for simple stuff, then we'll work up to harder stuff

This commit is contained in:
friendica 2012-07-02 01:11:19 -07:00
parent a9c65dfe27
commit 315784444a
4 changed files with 10 additions and 6 deletions

View file

@ -93,11 +93,15 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true) {
// Convert new line chars to html <br /> tags
$Text = nl2br($Text);
// $Text = nl2br($Text);
$Text = str_replace(array("\r","\n"), array('<br />','<br />'), $Text);
if($preserve_nl)
$Text = str_replace(array("\n","\r"), array('',''),$Text);
// Set up the parameters for a URL search string
$URLSearchString = "^\[\]";
// Set up the parameters for a MAIL search string