X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FSanitizer.php;h=2cdbe15f2c0481657b733ec9e301430f0d296c57;hb=296c6b39e5e29dcf5cec0e872d1cddc513ab5fda;hp=ec17a0895cf2bb526c985b6486e9fa86125bf69b;hpb=9c3b9ef639dd015b652dc05dc6cdf26396b89463;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Sanitizer.php b/includes/Sanitizer.php index ec17a0895c..2cdbe15f2c 100644 --- a/includes/Sanitizer.php +++ b/includes/Sanitizer.php @@ -328,6 +328,7 @@ class Sanitizer { * Regular expression to match HTML/XML attribute pairs within a tag. * Allows some... latitude. * Used in Sanitizer::fixTagAttributes and Sanitizer::decodeTagAttributes + * @return string */ static function getAttribsRegex() { if ( self::$attribsRegex === null ) { @@ -715,7 +716,7 @@ class Sanitizer { * - Invalid id attributes are re-encoded * * @param array $attribs - * @param array $whitelist list of allowed attribute names + * @param array $whitelist List of allowed attribute names * @return array * * @todo Check for legal values where the DTD limits things. @@ -1081,7 +1082,7 @@ class Sanitizer { * @see http://www.whatwg.org/html/elements.html#the-id-attribute * HTML5 definition of id attribute * - * @param string $id id to escape + * @param string $id Id to escape * @param string|array $options String or array of strings (default is array()): * 'noninitial': This is a non-initial fragment of an id, not a full id, * so don't pay attention if the first character isn't valid at the @@ -1228,7 +1229,7 @@ class Sanitizer { * attribs regex matches. * * @param array $set - * @throws MWException when tag conditions are not met. + * @throws MWException When tag conditions are not met. * @return string */ private static function getTagAttributeCallback( $set ) {