aboutsummaryrefslogtreecommitdiffstats
path: root/include/html2bbcode.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/html2bbcode.php')
-rw-r--r--include/html2bbcode.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/html2bbcode.php b/include/html2bbcode.php
index e1c0572f5..e0a9a630a 100644
--- a/include/html2bbcode.php
+++ b/include/html2bbcode.php
@@ -128,9 +128,9 @@ function html2bbcode($message)
$message = preg_replace('/\<ul(.*?)\>/', '[list]', $message);
$message = preg_replace('/\<ol(.*?)\>/', '[list=1]', $message);
+ $message = preg_replace('/\<li(.*?)\>/', '[*]', $message);
$message = str_replace(['</ul>', '</ol>'], '[/list]', $message);
- $message = str_replace(['<li><p>', '<li>'], '[*]', $message);
- $message = str_replace(['</p></li>', '</li>'], '', $message);
+ $message = str_replace('</li>', '', $message);
if(!$message)
return;