diff options
author | Andy Staudacher <andy.st@gmail.com> | 2009-08-29 22:54:20 -0700 |
---|---|---|
committer | Andy Staudacher <andy.st@gmail.com> | 2009-08-29 22:54:20 -0700 |
commit | b9bd1681a3b1496c0f1bbe5e6254ab4fd0c9fe30 (patch) | |
tree | 0ce300329bb2b6ace0e0fd72c94fe5fbb7e4db96 /modules/search | |
parent | 952c8856098dcfd9673d344fc71be85b303c8fb1 (diff) |
Update all code to use helper method html::clean(), html::purify(), ... instead of SafeString directly.
Diffstat (limited to 'modules/search')
-rw-r--r-- | modules/search/views/search.html.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/search/views/search.html.php b/modules/search/views/search.html.php index e5c7b4a6..7963948d 100644 --- a/modules/search/views/search.html.php +++ b/modules/search/views/search.html.php @@ -8,7 +8,7 @@ <ul> <li> <label for="q"><?= t("Search the gallery") ?></label> - <input name="q" id="q" type="text" value="<?= SafeString::of($q)->for_html_attr() ?>"/> + <input name="q" id="q" type="text" value="<?= html::clean_attribute($q) ?>"/> </li> <li> <input type="submit" value="<?= t("Search")->for_html_attr() ?>" /> @@ -31,10 +31,10 @@ <a href="<?= url::site("items/$item->id") ?>"> <?= $item->thumb_img() ?> <p> - <?= SafeString::purify($item->title) ?> + <?= html::purify($item->title) ?> </p> <div> - <?= nl2br(SafeString::purify($item->description)) ?> + <?= nl2br(html::purify($item->description)) ?> </div> </a> </li> |