/**
* List of all named character entities defined in HTML 4.01
* http://www.w3.org/TR/html4/sgml/entities.html
- * @access private
+ * @private
*/
global $wgHtmlEntities;
$wgHtmlEntities = array(
/**
* Cleans up HTML, removes dangerous tags and attributes, and
* removes HTML comments
- * @access private
+ * @private
* @param string $text
* @param callback $processCallback to do any variable or parameter replacements in HTML attribute values
* @param array $args for the processing callback
* and followed by a newline (ignoring spaces), trim leading and
* trailing spaces and one of the newlines.
*
- * @access private
+ * @private
* @param string $text
* @return string
*/
* Regex replace callback for armoring links against further processing.
* @param array $matches
* @return string
- * @access private
+ * @private
*/
function armorLinksCallback( $matches ) {
return str_replace( ':', ':', $matches[1] );
*
* @param array $set
* @return string
- * @access private
+ * @private
*/
function getTagAttributeCallback( $set ) {
if( isset( $set[6] ) ) {
*
* @param string $text
* @return string
- * @access private
+ * @private
*/
function normalizeAttributeValue( $text ) {
return str_replace( '"', '"',
*
* @param string $text
* @return string
- * @access private
+ * @private
*/
function normalizeCharReferences( $text ) {
return preg_replace_callback(
*
* @param string $text
* @return string
- * @access public
+ * @public
*/
function decodeCharReferences( $text ) {
return preg_replace_callback(
* character reference, otherwise U+FFFD REPLACEMENT CHARACTER.
* @param int $codepoint
* @return string
- * @access private
+ * @private
*/
function decodeChar( $codepoint ) {
if( Sanitizer::validateCodepoint( $codepoint ) ) {