From 2621324fbc35249274d8863d3dda0ce5f9759e87 Mon Sep 17 00:00:00 2001 From: uckelman Date: Sat, 24 Jul 2010 20:35:18 +0000 Subject: Decode smilies. git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@7025 67b53d14-2c14-4ace-a08f-0dab2b34000c --- src/BBCodeParser.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/BBCodeParser.php') 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('/