Commit dbb8bb78 authored by Loui Chang's avatar Loui Chang
Browse files

TU: Use htmlspecialchars instead of htmlentities.



Let the utf8 shine through.

Signed-off-by: default avatarLoui Chang <louipc.ist@gmail.com>
parent dc8265a9
......@@ -21,7 +21,7 @@ N/A
<?php print __('End') ?>: <b><?php print gmdate("r", $row['End']) ?></b></p>
<p>
<?php print str_replace("\n", "<br />\n", htmlentities($row['Agenda'])) ?>
<?php print str_replace("\n", "<br />\n", htmlspecialchars($row['Agenda'])) ?>
</p>
<table class="boxSoft" width='100%' cellspacing='0' cellpadding='2'>
......
......@@ -20,11 +20,7 @@
<tr>
<td class='<?php print $c ?>'><span class='f4'><span class='blue'>
<?php
if (strlen($row["Agenda"]) >= $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));
?>
<a href='tu.php?id=<?php print $row['ID'] ?>'><?php print $row["Agenda"] ?></a></span></span>
</td>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment