From 57137346d16e4d9bb0d374f0c59a55b27946a293 Mon Sep 17 00:00:00 2001 From: uckelman Date: Mon, 19 Apr 2010 19:15:42 +0000 Subject: Test BBCodeParser. git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6718 67b53d14-2c14-4ace-a08f-0dab2b34000c --- src/F2M.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/F2M.php b/src/F2M.php index 3c3d16a..fe08565 100644 --- a/src/F2M.php +++ b/src/F2M.php @@ -19,6 +19,15 @@ function send_to_lists($user, $mode, $data, $post_data) { print '

'; */ + require_once(__DIR__ . '/../HTML/BBCodeParser.php'); + + $text = nl2br($data['message']); + $parser = new HTML_BBCodeParser(); + $parser->setText($text); + $parser->parse(); + $text = $parser->getParsed(); + + print $text; /* $text = nl2br($data['message']); $bbcode = new bbcode(base64_encode($data['bbcode_bitfield'])); -- cgit v1.2.3