TU: Use htmlspecialchars instead of htmlentities.

Let the utf8 shine through.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
This commit is contained in:
Loui Chang 2010-11-03 01:03:45 -04:00
parent dc8265a962
commit dbb8bb783f
2 changed files with 2 additions and 6 deletions

View file

@ -21,7 +21,7 @@ N/A
<?php print __('End') ?>: <b><?php print gmdate("r", $row['End']) ?></b></p> <?php print __('End') ?>: <b><?php print gmdate("r", $row['End']) ?></b></p>
<p> <p>
<?php print str_replace("\n", "<br />\n", htmlentities($row['Agenda'])) ?> <?php print str_replace("\n", "<br />\n", htmlspecialchars($row['Agenda'])) ?>
</p> </p>
<table class="boxSoft" width='100%' cellspacing='0' cellpadding='2'> <table class="boxSoft" width='100%' cellspacing='0' cellpadding='2'>

View file

@ -20,11 +20,7 @@
<tr> <tr>
<td class='<?php print $c ?>'><span class='f4'><span class='blue'> <td class='<?php print $c ?>'><span class='f4'><span class='blue'>
<?php <?php
if (strlen($row["Agenda"]) >= $prev_Len) { $row["Agenda"] = htmlspecialchars(substr($row["Agenda"], 0, $prev_Len));
$row["Agenda"] = htmlentities(substr($row["Agenda"], 0, $prev_Len)) . "...";
} else {
$row["Agenda"] = htmlentities($row["Agenda"]);
}
?> ?>
<a href='tu.php?id=<?php print $row['ID'] ?>'><?php print $row["Agenda"] ?></a></span></span> <a href='tu.php?id=<?php print $row['ID'] ?>'><?php print $row["Agenda"] ?></a></span></span>
</td> </td>