HTML to BBCODE and BBCODE to HTML

  • Thread starter Deleted member 10469
  • Start date
D

Deleted member 10469

Guest
Hello, I would like know the class names available (and recommended) method for convert html to bbcode and bbcode to html with Xenforo Model please.

Currently I have that when I push html inside xenforo database from external website:
pT15OVQ.png


I need a solution for convert my html in xenforo bbcode before store my message inside the xenforo database.

Thanks.
 

lol768

Active member
BBCode to HTML:

Something like this?
PHP:
$formatter = \XenForo_BbCode_Formatter_Base::create();
$parser = new \XenForo_BbCode_Parser($formatter);
$html = $parser->render($bbCode);
 
Top