From ecae44865273756bf0b4ec2ad604176398320541 Mon Sep 17 00:00:00 2001 From: coderkun Date: Tue, 13 May 2014 21:14:00 +0200 Subject: [PATCH] add strong-tag to text formatting --- app/TextFormatter.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/TextFormatter.inc b/app/TextFormatter.inc index 85025039..6aef679b 100644 --- a/app/TextFormatter.inc +++ b/app/TextFormatter.inc @@ -60,6 +60,10 @@ // Remove chars $string = htmlspecialchars($string, ENT_NOQUOTES); + // Important text + $string = str_replace('[strong]', '', $string); + $string = str_replace('[/strong]', '', $string); + // Create tables $string = str_replace('[table]', '

', $string); $string = str_replace('[/table]', '

', $string);