summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/BBCodeParser.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/BBCodeParser.php b/src/BBCodeParser.php
index a1f7236..af2d129 100644
--- a/src/BBCodeParser.php
+++ b/src/BBCodeParser.php
@@ -12,6 +12,9 @@ class BBCodeParser {
# decode HTML entities before parsing
$in = html_entity_decode($in, ENT_QUOTES, 'UTF-8');
+ # convert smilies, which aren't in BBCode (ack!)
+ $in = preg_replace('/<!-- s(.*?) --><img src="\{SMILIES_PATH\}\/.*? \/><!-- s\1 -->/', '\1', $in);
+
$text_stack = array();
$arg_stack = array();