return $r ;
}
+ # Return allowed HTML attributes
function getHTMLattrs ()
{
$htmlattrs = array( # Allowed attributes--no scripting, etc.
return $htmlattrs ;
}
+ # Remove non approved attributes and javascript in css
function fixTagAttributes ( $t )
{
if ( trim ( $t ) == "" ) return "" ; # Saves runtime ;-)
return trim ( $t ) ;
}
- /* interface with html tidy, used if $wgUseTidy = true */
+ # interface with html tidy, used if $wgUseTidy = true
function tidy ( $text ) {
global $wgTidyConf, $wgTidyBin, $wgTidyOpts;
global $wgInputEncoding, $wgOutputEncoding;
}
}
+ # parse the wiki syntax used to render tables
function doTableStuff ( $t )
{
$t = explode ( "\n" , $t ) ;
return $text;
}
-
+ # Parse headers and return html
/* private */ function doHeadings( $text )
{
$fname = "Parser::doHeadings";
return $output;
}
+ # Return value of a magic variable (like PAGENAME)
function getVariableValue( $index ) {
global $wgLang, $wgSitename, $wgServer;
}
}
+ # initialise the magic variables (like CURRENTMONTHNAME)
function initialiseVariables()
{
global $wgVariableIDs;
return $full;
}
+ # Return an HTML link for the "ISBN 123456" text
/* private */ function magicISBN( $text )
{
global $wgLang;
}
return $text;
}
+
+ # Return an HTML link for the "RFC 1234" text
/* private */ function magicRFC( $text )
{
global $wgLang;