mirror of
https://github.com/friendica/friendica
synced 2025-04-26 07:10:12 +00:00
try and get unadulterated bb2md2html2bb for simple stuff, then we'll work up to harder stuff
This commit is contained in:
parent
a9c65dfe27
commit
315784444a
4 changed files with 10 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue