diff options
| author | fisharebest <fisharebest@gmail.com> | 2012-02-29 18:20:49 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2012-02-29 18:20:49 +0000 |
| commit | de25291baa290496098b5e7636275c9c335d7f7e (patch) | |
| tree | 89694cb3bb1eb208d496eaa3f680249cf45044a6 /find.php | |
| parent | 9b2a5bfe7b07ea73759b0721929c8bd6b3dfc73f (diff) | |
| download | webtrees-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.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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("\'", '"'), $place), "');\">", PrintReady($place), "</a></li>"; + echo "<li><a href=\"#\" onclick=\"pasteid('", str_replace(array("'", '"'), array("\'", '"'), $place), "');\">", htmlspecialchars($place), "</a></li>"; } echo '</ul> <p>', WT_I18N::translate('Places found'), ' ', $ctplace, '</p>'; |
