summaryrefslogtreecommitdiff
path: root/find.php
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2012-02-29 18:20:49 +0000
committerfisharebest <fisharebest@gmail.com>2012-02-29 18:20:49 +0000
commitde25291baa290496098b5e7636275c9c335d7f7e (patch)
tree89694cb3bb1eb208d496eaa3f680249cf45044a6 /find.php
parent9b2a5bfe7b07ea73759b0721929c8bd6b3dfc73f (diff)
downloadwebtrees-de25291baa290496098b5e7636275c9c335d7f7e.tar.gz
webtrees-de25291baa290496098b5e7636275c9c335d7f7e.tar.bz2
webtrees-de25291baa290496098b5e7636275c9c335d7f7e.zip
Use HTML5 markup instead of PrintReady(), hasRTLText(), utf8_direction(), etc. The browser will do a much faster and better job than we can. Unfortunately, only Webkit supports this at the moment. Presto and Gecko should support it soon. Trident support is unknown.
Diffstat (limited to 'find.php')
-rw-r--r--find.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/find.php b/find.php
index 31dc3b7a4c..c95f6b79f0 100644
--- a/find.php
+++ b/find.php
@@ -690,7 +690,7 @@ if ($action=="filter") {
//-- name and size field
echo '<div class="find-media-details">';
if ($media["TITL"] != '') {
- echo '<p class="find-media-title">', PrintReady($media["TITL"]), '</p>';
+ echo '<p class="find-media-title">', htmlspecialchars($media["TITL"]), '</p>';
}
if (!$embed) {
echo '<p><a href="#" onclick="pasteid(\'', addslashes($media["FILE"]), '\span dir="ltr">', $media["FILE"], '</span></a> -- </p>';
@@ -765,7 +765,7 @@ if ($action=="filter") {
uasort($revplacelist, "utf8_strcasecmp");
echo '<ul>';
foreach ($revplacelist as $place) {
- echo "<li><a href=\"#\" onclick=\"pasteid('", str_replace(array("'", '"'), array("\'", '&quot;'), $place), "');\">", PrintReady($place), "</a></li>";
+ echo "<li><a href=\"#\" onclick=\"pasteid('", str_replace(array("'", '"'), array("\'", '&quot;'), $place), "');\">", htmlspecialchars($place), "</a></li>";
}
echo '</ul>
<p>', WT_I18N::translate('Places found'), '&nbsp;', $ctplace, '</p>';