72 $this->uniqueId =
$url;
85 $string = str_replace(
"\r\n",
"\n", $string );
86 $string = preg_replace(
'/[\x00-\x08\x0b\x0c\x0e-\x1f]/',
'', $string );
87 return htmlspecialchars( $string );
106 if ( $this->uniqueId ) {
154 return $this->
xmlEncode( $this->description );
192 return $this->
xmlEncode( $this->author );
210 return $this->
xmlEncode( $this->comments );
229 return preg_replace(
'/\[\[([^]]*\|)?([^]]+)\]\]/',
'\2', $text );
238class_alias( FeedItem::class,
'FeedItem' );
wfExpandUrl( $url, $defaultProto=PROTO_CURRENT)
Expand a potentially local URL to a fully-qualified URL using $wgServer (or one of its alternatives).
Methods for dealing with language codes.
static bcp47( $code)
Get the normalised IANA language tag See unit test for examples.
A class containing constants representing the names of configuration variables.
const LanguageCode
Name constant for the LanguageCode setting, for use with Config::get()