summaryrefslogtreecommitdiff
path: root/src/F2M.php
diff options
context:
space:
mode:
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']));