summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2013-07-15 18:40:22 +0200
committerMichael Tänzer <neo@nhng.de>2013-07-15 18:40:22 +0200
commit2849777164eb4926a74099b53dc1137bb4e6c555 (patch)
treeac2d9cc0429bf3656aaee189c350403ca8c5280e
parent362ed35d683bc07f62a5e83aed1731eb1a8bffc1 (diff)
downloadcacert-devel-2849777164eb4926a74099b53dc1137bb4e6c555.tar.gz
cacert-devel-2849777164eb4926a74099b53dc1137bb4e6c555.tar.xz
cacert-devel-2849777164eb4926a74099b53dc1137bb4e6c555.zip
bug 1190: properly handle entities
Signed-off-by: Michael Tänzer <neo@nhng.de>
-rw-r--r--pages/index/0.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/pages/index/0.php b/pages/index/0.php
index 79a677d..805b147 100644
--- a/pages/index/0.php
+++ b/pages/index/0.php
@@ -44,7 +44,7 @@
foreach($items as $id => $item) {
$query = "./title";
$nodeList = $xpath->query($query, $item);
- $title = str_replace("&amp;#", "&#", recode_string("UTF8..html" , $nodeList->item(0)->nodeValue));
+ $title = recode_string("UTF8..html" , $nodeList->item(0)->nodeValue);
$query = "./link";
$nodeList = $xpath->query($query, $item);
@@ -52,7 +52,7 @@
$query = "./description";
$nodeList = $xpath->query($query, $item);
- $description = str_replace("&amp;#", "&#", recode_string("UTF8..html" , $nodeList->item(0)->nodeValue));
+ $description = recode_string("UTF8..html" , $nodeList->item(0)->nodeValue);
printf('<h3> %s </h3>\n', $title);
printf('<p> %s </p>\n', $description);