define( "OT_WIKI", 2 );
define( "OT_MSG", 3 );
+# prefix for escaping, used in two functions at least
+define( "UNIQ_PREFIX", "NaodW29");
+
class Parser
{
# Cleared with clearState():
$pre_content = array();
# Replace any instances of the placeholders
- $uniq_prefix = "NaodW29";
+ $uniq_prefix = UNIQ_PREFIX;
$text = str_replace( $uniq_prefix, wfHtmlEscapeFirst( $uniq_prefix ), $text );
$text = Parser::extractTags("nowiki", $text, $nowiki_content, $uniq_prefix);
$lastPref = $pref2;
}
if ( 0 == $npl ) { # No prefix--go to paragraph mode
+ $uniq_prefix = UNIQ_PREFIX;
if ( preg_match(
"/(<table|<blockquote|<h1|<h2|<h3|<h4|<h5|<h6|<div)/i", $t ) ) {
$text .= $this->closeParagraph();