Update all code to use helper method html::clean(), html::purify(), ... instead of SafeString directly.

This commit is contained in:
Andy Staudacher
2009-08-29 22:54:20 -07:00
parent 952c885609
commit b9bd1681a3
52 changed files with 143 additions and 143 deletions

View File

@@ -1,26 +1,26 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<html>
<head>
<title><?= SafeString::of($subject) ?> </title>
<title><?= html::clean($subject) ?> </title>
</head>
<body>
<h2><?= SafeString::of($subject) ?></h2>
<h2><?= html::clean($subject) ?></h2>
<table>
<tr>
<td><?= t("Comment:") ?></td>
<td><?= nl2br(SafeString::purify($comment->text)) ?></td>
<td><?= nl2br(html::purify($comment->text)) ?></td>
</tr>
<tr>
<td><?= t("Author Name:") ?></td>
<td><?= SafeString::of($comment->author_name()) ?></td>
<td><?= html::clean($comment->author_name()) ?></td>
</tr>
<tr>
<td><?= t("Author Email:") ?></td>
<td><?= SafeString::of($comment->author_email()) ?></td>
<td><?= html::clean($comment->author_email()) ?></td>
</tr>
<tr>
<td><?= t("Author URL:") ?></td>
<td><?= SafeString::of($comment->author_url()) ?></td>
<td><?= html::clean($comment->author_url()) ?></td>
</tr>
<tr>
<td><?= t("Url:") ?></td>