vB Plain-Text Quotes Contain HTML
When outputting a QUOTE tag as plain-text under vBulletin, the callback is overridden and contains HTML even though HTML is not supported by the plain-text parser. This is particularly problematic with new-post notifications and other subscription emails.
Fixed in the next release. In
vault/core/model/parser/handle/vb3.php, find:
Code:
$message = $this->parent->instance->trim($message, 1);
Add after:
Code:
if ($this->parent->instance->get('class') == 'plain')
{
if ($username)
{
return "\n" . construct_phrase(
$this->parent->fetch_parser_phrase('bbcode_plaintext_quote_username_x_y'),
$username,
$message
) . "\n";
}
else
{
return "\n" . construct_phrase(
$this->parent->fetch_parser_phrase('bbcode_plaintext_quote_x'),
$message
) . "\n";
}
}
Note that this fix may not work in Beta 3 due to other issues with the parser under vBulletin. You are still welcome to try this code patch.