local URLs
* (bug 16376) Mention in deleteBatch.php and moveBatch.php maintenance scripts
that STDIN can be used for page list
-* Sanitizer::decodeCharReferences() now decodes the XHTML "'" character
- entity (loosely related to bug 14365)
* (bug 16560) Special:Random returns a page from ContentNamespaces, and no
longer from NS_MAIN
/**
* List of all named character entities defined in HTML 4.01
* http://www.w3.org/TR/html4/sgml/entities.html
- * This list does *not* include ', which is part of XHTML
- * 1.0 but not HTML 4.01. It is handled as a special case in
- * the code.
* @private
*/
global $wgHtmlEntities;
/**
* Character entity aliases accepted by MediaWiki
- * XXX: decodeEntity() assumes that all values in this array are valid keys to $wgHtmlEntities
*/
global $wgHtmlEntityAliases;
$wgHtmlEntityAliases = array(
* encoded text for an attribute value.
*
* See http://www.w3.org/TR/REC-xml/#AVNormalize for background,
- * but note that we are not returning the value, but are returning
+ * but note that we're not returning the value, but are returning
* XML source fragments that will be slapped into output.
*
* @param string $text
return "&{$wgHtmlEntityAliases[$name]};";
} elseif( isset( $wgHtmlEntities[$name] ) ) {
return "&$name;";
- } elseif( $name == 'apos' ) {
- return "'"; // "'" is valid in XHTML, but not in HTML4
} else {
return "&$name;";
}
}
if( isset( $wgHtmlEntities[$name] ) ) {
return codepointToUtf8( $wgHtmlEntities[$name] );
- } elseif( $name == 'apos' ) {
- return "'"; // "'" is not in $wgHtmlEntities, but it's still valid XHTML
} else {
return "&$name;";
}