mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
another try
This commit is contained in:
@@ -193,7 +193,7 @@ function html2bbcode($message)
|
||||
node2bbcode($doc, 'blockquote', array(), '[quote]', '[/quote]');
|
||||
|
||||
// Use a temporary tag to keep line breaks
|
||||
node2bbcode($doc, 'br', array(), '[br] ', '');
|
||||
node2bbcode($doc, 'br', array(), '[br]', '');
|
||||
|
||||
node2bbcode($doc, 'a', array('href'=>'/(.+)/'), '[url=$1]', '[/url]');
|
||||
|
||||
@@ -304,7 +304,7 @@ function html2bbcode($message)
|
||||
array('[b]', '[/b]', '[i]', '[/i]'), $message);
|
||||
|
||||
// Restore linebreaks from temp tag
|
||||
$message = str_replace('[br] ', "\n", $message);
|
||||
$message = preg_replace('/\[br\]\s{1}|\[br\]/', "\n", $message);
|
||||
|
||||
// Handling Yahoo style of mails
|
||||
// $message = str_replace('[hr][b]From:[/b]', '[quote][b]From:[/b]', $message);
|
||||
|
||||
Reference in New Issue
Block a user