@@ -25,6 +25,7 @@ discard block |
||
25 | 25 | /** Sets the used charset for the esacpeHTML and escapeXML function. |
26 | 26 | * |
27 | 27 | * @param $value, the string/value to escape. |
28 | + * @param string $value |
|
28 | 29 | * |
29 | 30 | */ |
30 | 31 | public function setEncoding($value) |
@@ -35,7 +36,7 @@ discard block |
||
35 | 36 | |
36 | 37 | /** Returns the used charset for the esacpeHTML and escapeXML function. |
37 | 38 | * |
38 | - * @return the current charset as a string. |
|
39 | + * @return string current charset as a string. |
|
39 | 40 | */ |
40 | 41 | public function getEncoding() |
41 | 42 | { |
@@ -75,6 +76,7 @@ discard block |
||
75 | 76 | /** Escapes non-alphanumeric characters in an untrusted string for JS input values. |
76 | 77 | * |
77 | 78 | * @param $string, the untrusted string to escape. |
79 | + * @param string $value |
|
78 | 80 | * |
79 | 81 | * @return $result, escaped string. |
80 | 82 | */ |
@@ -91,6 +93,7 @@ discard block |
||
91 | 93 | /** Escapes non-alphanumeric characters in an untrusted string for CSS input values. |
92 | 94 | * |
93 | 95 | * @param $string, the untrusted string to escape. |
96 | + * @param string $value |
|
94 | 97 | * |
95 | 98 | * @return $result, escaped string. |
96 | 99 | */ |
@@ -107,6 +110,7 @@ discard block |
||
107 | 110 | /** Escapes data that is to be inserted in a URL not the whole URL itself. |
108 | 111 | * |
109 | 112 | * @param $string, the untrusted string to escape. |
113 | + * @param string $value |
|
110 | 114 | * |
111 | 115 | * @return, escaped string. |
112 | 116 | */ |
@@ -118,12 +122,16 @@ discard block |
||
118 | 122 | /** |
119 | 123 | * Aliases to HTML functions for semantic value. |
120 | 124 | * XML escaping is identical to HTML escaping. |
125 | + * @param string $value |
|
121 | 126 | */ |
122 | 127 | public function escapeXml($value) |
123 | 128 | { |
124 | 129 | return $this->escapeHTML($value); |
125 | 130 | } |
126 | 131 | |
132 | + /** |
|
133 | + * @param string $value |
|
134 | + */ |
|
127 | 135 | public function escapeXmlAttr($value) |
128 | 136 | { |
129 | 137 | return $this->escapeHTMLattr($value); |