Jaxel
Well-known member
I know I can parse bbcode in a text field in the view public using this:
Is it possible to parse the bbcode for a string in the model instead of the view?
Code:
$bbCodeParser = new XenForo_BbCode_Parser(XenForo_BbCode_Formatter_Base::create('Base', array('view' => $this)));
$field['html'] = new XenForo_BbCode_TextWrapper($field['text'], $bbCodeParser);
Is it possible to parse the bbcode for a string in the model instead of the view?