From dbb8bb783f2f22b68ad2d65f020390428e77c479 Mon Sep 17 00:00:00 2001 From: Loui Chang Date: Wed, 3 Nov 2010 01:03:45 -0400 Subject: TU: Use htmlspecialchars instead of htmlentities. Let the utf8 shine through. Signed-off-by: Loui Chang --- web/template/tu_details.php | 2 +- web/template/tu_list.php | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'web/template') diff --git a/web/template/tu_details.php b/web/template/tu_details.php index 0016dfe8..315e1b90 100644 --- a/web/template/tu_details.php +++ b/web/template/tu_details.php @@ -21,7 +21,7 @@ N/A :

-\n", htmlentities($row['Agenda'])) ?> +\n", htmlspecialchars($row['Agenda'])) ?>

diff --git a/web/template/tu_list.php b/web/template/tu_list.php index f734cec5..f64d3834 100644 --- a/web/template/tu_list.php +++ b/web/template/tu_list.php @@ -20,11 +20,7 @@ -- cgit v1.2.3-24-g4f1b
= $prev_Len) { - $row["Agenda"] = htmlentities(substr($row["Agenda"], 0, $prev_Len)) . "..."; - } else { - $row["Agenda"] = htmlentities($row["Agenda"]); - } + $row["Agenda"] = htmlspecialchars(substr($row["Agenda"], 0, $prev_Len)); ?> '>