Currently putting bbcode inside the [code] bbcode it is still parsed as bbcode. This shouldn't happen and I was wondering if someone would be able to help me fix this.
Code:
this text shouldn't be bold or underlined
Code:
function handle_bbcode_code($code)
{
global $vbulletin, $vbphrase, $stylevar, $show;
// remove unnecessary line breaks and escaped quotes
$code = str_replace(array('<br>', '<br />'), array('', ''), $code);
$code = $this->strip_front_back_whitespace($code, 1);
if ($this->printable)
{
$code = $this->emulate_pre_tag($code);
$template = 'bbcode_code_printable';
}
else
{
$blockheight = $this->fetch_block_height($code);
$template = 'bbcode_code';
}
eval('$html = "' . fetch_template($template) . '";');
return $html;
}
In the ACP for custom bbcodes there is a way to disable bbcode inside of a bbcode but for some reason that was not applied to this bbcode. I tried converting $code to htmlentities and thought it would make the bbcode parser not parse it as bbcode but that didn't work. It simply made the code tag output html.