I am working on synchronizing news from a site and it's forum. So when an admin create some news on the site, a thread would be created in the forum as well. I used XenForo_DataWriter_Discussion_Thread for that.
$writer = XenForo_DataWriter::create('XenForo_DataWriter_Discussion_Thread');
$writer->set('user_id', $oUser['user_id']);
$writer->set('username', $oUser['username']);
$writer->set('node_id', 2);
$writer->set('title', $aIns['name_article']);
$postWriter = $writer->getFirstMessageDw();
$postWriter->set('message', $aIns['content_article']);
$writer->save();
The problem is the after creating a thread, the message is displayed with html tags.
How can i make it works properly without striping html tags ?
$writer = XenForo_DataWriter::create('XenForo_DataWriter_Discussion_Thread');
$writer->set('user_id', $oUser['user_id']);
$writer->set('username', $oUser['username']);
$writer->set('node_id', 2);
$writer->set('title', $aIns['name_article']);
$postWriter = $writer->getFirstMessageDw();
$postWriter->set('message', $aIns['content_article']);
$writer->save();
The problem is the after creating a thread, the message is displayed with html tags.
How can i make it works properly without striping html tags ?