From bc6a9a13842f53302333ee247a0450f6bb3fab1a Mon Sep 17 00:00:00 2001 From: uckelman Date: Sun, 25 Apr 2010 20:48:44 +0000 Subject: Use BBCodeParser. git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6754 67b53d14-2c14-4ace-a08f-0dab2b34000c --- src/F2M.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/F2M.php') diff --git a/src/F2M.php b/src/F2M.php index 8e65537..445e047 100644 --- a/src/F2M.php +++ b/src/F2M.php @@ -21,6 +21,7 @@ function send_post_to_lists($config, $user, $mode, $data, $post_data) { require_once('Mail.php'); + require_once(__DIR__ . '/BBCodeParser.php'); require_once(__DIR__ . '/Bridge.php'); require_once(__DIR__ . '/PhpBB3.php'); require_once(__DIR__ . '/Util.php'); @@ -93,10 +94,8 @@ function send_post_to_lists($config, $user, $mode, $data, $post_data) { } # Build the message body - $text = $data['message']; - strip_bbcode($text, $data['bbcode_uid']); - $text = htmlspecialchars_decode($text); - $text = wordwrap($text, 72); + $parser = new BBCodeParser(); + $text = $parser->parse($data['message'], $data['bbcode_uid']); if ($mode == 'edit') { $edit_notice = <<