\n"
. "
\n"
- . "
\$foo['bar'] = 42;\n"
+ . "
\$foo['bar'] = 42;\n"
. "if (\$foo["bar"] < 42) \$foo[] = 0;
\n"
. "
\n"
. "Also not code.
\n",
@@ -1039,8 +1060,8 @@ public function provideBlockTagConversionTests() {
]],
[[
'descr' => "[nextcol] doesn't do anything outside a [columns] block.",
- 'bbcode' => "Here's some text.[nextcol]\nHere's some more.\n",
- 'html' => "Here's some text.[nextcol]
\nHere's some more.
\n",
+ 'bbcode' => "Here is some text.[nextcol]\nHere is some more.\n",
+ 'html' => "Here is some text.[nextcol]
\nHere is some more.
\n",
]],
[[
'descr' => "Bad column misuse doesn't break layouts.",
@@ -1175,6 +1196,7 @@ protected function performTest($test) {
$bbcode->setURLTargetable($test['urltarget'] == true);
$bbcode->setURLTarget($test['urlforcetarget']);
$bbcode->setPlainMode($test['plainmode']);
+ $bbcode->setEscapeContent($test['escape_content'] ?? true);
if ($test['tag_marker'] === '<') {
$bbcode->setTagMarker('<');