mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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:
parent
dc8265a962
commit
dbb8bb783f
2 changed files with 2 additions and 6 deletions
|
@ -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'>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Add table
Reference in a new issue