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/info | |
parent | 952c8856098dcfd9673d344fc71be85b303c8fb1 (diff) |
Update all code to use helper method html::clean(), html::purify(), ... instead of SafeString directly.
Diffstat (limited to 'modules/info')
-rw-r--r-- | modules/info/views/info_block.html.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/info/views/info_block.html.php b/modules/info/views/info_block.html.php index bfaaee99..d8f36984 100644 --- a/modules/info/views/info_block.html.php +++ b/modules/info/views/info_block.html.php @@ -2,18 +2,18 @@ <ul class="gMetadata"> <li> <strong class="caption"><?= t("Title:") ?></strong> - <?= SafeString::purify($item->title) ?> + <?= html::purify($item->title) ?> </li> <? if ($item->description): ?> <li> <strong class="caption"><?= t("Description:") ?></strong> - <?= nl2br(SafeString::purify($item->description)) ?> + <?= nl2br(html::purify($item->description)) ?> </li> <? endif ?> <? if (!$item->is_album()): ?> <li> <strong class="caption"><?= t("File name:") ?></strong> - <?= SafeString::of($item->name) ?> + <?= html::clean($item->name) ?> </li> <? endif ?> <? if ($item->captured): ?> @@ -26,9 +26,9 @@ <li> <strong class="caption"><?= t("Owner:") ?></strong> <? if ($item->owner->url): ?> - <a href="<?= $item->owner->url ?>"><?= SafeString::of($item->owner->display_name()) ?></a> + <a href="<?= $item->owner->url ?>"><?= html::clean($item->owner->display_name()) ?></a> <? else: ?> - <?= SafeString::of($item->owner->display_name()) ?> + <?= html::clean($item->owner->display_name()) ?> <? endif ?> </li> <? endif ?> |