What I'm trying to do
I'm trying to use jBBCode to parse and de-parse bbcode into and from html.
The problem
When trying to get the html and turn that back in to bbcode, it just displays html. Here is the code I'm using to try and switch html back into bbcode.
$parser = new JBBCode\Parser();
$parser->loadDefaultCodes();
$parser->parse($MYHTMLSTRING);
echo $parser->getAsBBCode();
Does anyone know what I'm doing wrong here? I'm sure it's something very simple that I haven't figured out. Any help is appreciated! :D