}
}
}
-
+
# nowiki
$text = Parser::extractTags('nowiki', $text, $nowiki_content, $uniq_prefix);
foreach( $nowiki_content as $marker => $content ) {
for ( $content = end($state['nowiki']); $content !== false; $content = prev( $state['nowiki'] ) ) {
$text = str_replace( key( $state['nowiki'] ), $content, $text );
}
-
+
global $wgRawHtml;
if ($wgRawHtml) {
for ( $content = end($state['html']); $content !== false; $content = prev( $state['html'] ) ) {
'/(\\w+)(\\s*=\\s*([^\\s\">]+|\"[^\">]*\"))?/e',
"(in_array(strtolower(\"\$1\"),\$htmlattrs)?(\"\$1\".((\"x\$3\" != \"x\")?\"=\$3\":'')):'')",
$t);
-
+
$t = str_replace ( "<></>" , "" , $t ) ; # This should fix bug 980557
-
+
# Strip javascript "expression" from stylesheets. Brute force approach:
# If anythin offensive is found, all attributes of the HTML tag are dropped
wfProfileOut( $fname );
return $text;
}
-
+
/* private */ function &doMagicLinks( &$text ) {
$text = $this->magicISBN( $text );
$text = $this->magicGEO( $text );
}
$i++;
}
-
+
# If there is an odd number of both bold and italics, it is likely
# that one of the bold ones was meant to be an apostrophe followed
# by italics. Which one we cannot know for certain, but it is more
}
$i++;
}
-
+
# If there is a single-letter word, use it!
if ($firstsingleletterword > -1)
{
$arr [ $firstspace-1 ] .= "'";
}
}
-
+
# Now let's actually convert our apostrophic mush to HTML!
$output = '';
$buffer = '';
$rxImageURL = "/(^|[^\\[])({$protocol}:)([{$uc}{$sep}]+)\\/([{$fnc}]+)\\." .
"((?i){$images})([^{$uc}]|$)/";
- # Regexp for matching non-delimited URLs
+ # Regexp for matching non-delimited URLs
$rxFreeURL = "/(^|[^\\[])({$protocol}:)(([".$uc."]|[".$sep."][".$uc."])+)([^". $uc . $sep. "]|[".$sep."]|$)/";
$sk =& $this->mOptions->getSkin();
# Replace image URLs with <img> tags, but only for HTTP and HTTPS ($autonumber=true)
- if ( $autonumber and $this->mOptions->getAllowExternalImages() ) {
+ if ( $autonumber and $this->mOptions->getAllowExternalImages() ) {
$s = preg_replace( $rxImageURL, '\\1' . $sk->makeImage( "{$unique}:\\3" .
'/\\4.\\5', '\\4.\\5' ) . '\\6', $s );
}
if ( isset( $this->mTemplatePath[$part1] ) ) {
$noparse = true;
$found = true;
- }
+ }
# set $text to cached message.
$text = $this->mTemplates[$part1];
$found = true;