From 2b9322fc7d879fecbe334083bbd028538c985c54 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Wed, 31 Aug 2016 09:38:47 +0200 Subject: provide a possibility to create checklists in bbcode [x] creates a checked checkbox, [] creates an unchecked checkbox --- include/bbcode.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/bbcode.php') diff --git a/include/bbcode.php b/include/bbcode.php index db3a1011b..2d86bd263 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -769,6 +769,8 @@ function bbcode($Text, $preserve_nl = false, $tryoembed = true, $cache = false) } // Check for list text $Text = str_replace("[*]", "
  • ", $Text); + $Text = str_replace("[]", "
  • ", $Text); + $Text = str_replace("[x]", "
  • ", $Text); // handle nested lists $endlessloop = 0; -- cgit v1.2.3