Index: trunk/extensions/MobileFrontend/templates/SearchTemplate.php |
— | — | @@ -8,14 +8,14 @@ |
9 | 9 | |
10 | 10 | public function getHTML() { |
11 | 11 | |
12 | | - $searchField = htmlspecialchars( $this->data['searchField'] ); |
| 12 | + $searchField = Xml::escapeJsString( $this->data['searchField'] ); |
13 | 13 | $mainPageUrl = $this->data['mainPageUrl']; |
14 | 14 | $randomPageUrl = $this->data['randomPageUrl']; |
15 | 15 | $homeButton = $this->data['messages']['mobile-frontend-home-button']; |
16 | 16 | $randomButton = $this->data['messages']['mobile-frontend-random-button']; |
17 | | - $clearText = htmlentities( $this->data['messages']['mobile-frontend-clear-search'], ENT_QUOTES ); |
| 17 | + $clearText = Xml::escapeJsString( $this->data['messages']['mobile-frontend-clear-search'] ); |
18 | 18 | $searchValue = $this->data['messages']['mobile-frontend-search-submit']; |
19 | | - $placeholder = htmlentities( $this->data['messages']['mobile-frontend-placeholder'], ENT_QUOTES ); |
| 19 | + $placeholder = Xml::escapeJsString( $this->data['messages']['mobile-frontend-placeholder'] ); |
20 | 20 | |
21 | 21 | $scriptUrl = wfScript(); |
22 | 22 | $searchBoxDisplayNone = ( $this->data['hideSearchBox'] ) ? ' style="display: none;" ' : ''; |