summaryrefslogtreecommitdiff
path: root/src/F2M.php
diff options
context:
space:
mode:
authoruckelman <uckelman@nomic.net>2010-04-19 19:15:42 +0000
committeruckelman <uckelman@nomic.net>2010-04-19 19:15:42 +0000
commit57137346d16e4d9bb0d374f0c59a55b27946a293 (patch)
treebca19d14b4dc4de274aad8357d592060a5d1595e /src/F2M.php
parent3ffa73a8e7fa877a65528939bf10b90e198bd66f (diff)
Test BBCodeParser.
git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6718 67b53d14-2c14-4ace-a08f-0dab2b34000c
Diffstat (limited to 'src/F2M.php')
-rw-r--r--src/F2M.php9
1 files changed, 9 insertions, 0 deletions
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 '</p>';
*/
+ 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']));