From c6bf8d8ab9463722da4e1e0323c3383e08b8924e Mon Sep 17 00:00:00 2001 From: Sem Date: Thu, 14 Feb 2013 14:02:41 +0100 Subject: Using correct language in html tag and putting a placeholder in the search box. --- views/default/search/search_box.php | 41 +++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 views/default/search/search_box.php (limited to 'views/default/search') diff --git a/views/default/search/search_box.php b/views/default/search/search_box.php new file mode 100644 index 000000000..c1ea40705 --- /dev/null +++ b/views/default/search/search_box.php @@ -0,0 +1,41 @@ +,&, quotes and characters above 127 +if (function_exists('mb_convert_encoding')) { + $display_query = mb_convert_encoding($value, 'HTML-ENTITIES', 'UTF-8'); +} else { + // if no mbstring extension, we just strip characters + $display_query = preg_replace("/[^\x01-\x7F]/", "", $value); +} +$display_query = htmlspecialchars($display_query, ENT_QUOTES, 'UTF-8', false); + +?> + +
+
+ + + +
+
-- cgit v1.2.3