diff options
author | Mario <mario@mariovavti.com> | 2024-02-09 07:33:13 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-02-09 07:33:13 +0000 |
commit | e21e4c71275aaeb61c5a8ddb7ac5f179b4081cd3 (patch) | |
tree | 331842409264c52247918976e895297a4c874de2 /include | |
parent | 5754ea828d21c34d817f4c0f03189829db259157 (diff) | |
download | volse-hubzilla-e21e4c71275aaeb61c5a8ddb7ac5f179b4081cd3.tar.gz volse-hubzilla-e21e4c71275aaeb61c5a8ddb7ac5f179b4081cd3.tar.bz2 volse-hubzilla-e21e4c71275aaeb61c5a8ddb7ac5f179b4081cd3.zip |
let's try this
Diffstat (limited to 'include')
-rw-r--r-- | include/html2bbcode.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/html2bbcode.php b/include/html2bbcode.php index 61d530e7d..c1c1f972f 100644 --- a/include/html2bbcode.php +++ b/include/html2bbcode.php @@ -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 = str_replace('[br] ', "\n", $message); // Handling Yahoo style of mails // $message = str_replace('[hr][b]From:[/b]', '[quote][b]From:[/b]', $message); |