Convert phutil_render_tag(X, Y, phutil_escape_html(Z)) to phutil_tag
Summary:
Created with spatch:
lang=diff
- phutil_render_tag
+ phutil_tag
(X, Y,
- phutil_escape_html(
Z
- )
)
Test Plan: Loaded homepage
Reviewers: epriestley
Reviewed By: epriestley
CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D4501
This commit is contained in:
@@ -71,13 +71,13 @@ final class PhabricatorObjectItemView extends AphrontView {
|
||||
}
|
||||
|
||||
public function render() {
|
||||
$header = phutil_render_tag(
|
||||
$header = phutil_tag(
|
||||
'a',
|
||||
array(
|
||||
'href' => $this->href,
|
||||
'class' => 'phabricator-object-item-name',
|
||||
),
|
||||
phutil_escape_html($this->header));
|
||||
$this->header);
|
||||
|
||||
$icons = null;
|
||||
if ($this->icons) {
|
||||
@@ -93,12 +93,12 @@ final class PhabricatorObjectItemView extends AphrontView {
|
||||
),
|
||||
'');
|
||||
|
||||
$label = phutil_render_tag(
|
||||
$label = phutil_tag(
|
||||
'span',
|
||||
array(
|
||||
'class' => 'phabricator-object-item-icon-label',
|
||||
),
|
||||
phutil_escape_html($spec['label']));
|
||||
$spec['label']);
|
||||
|
||||
$icon_list[] = phutil_render_tag(
|
||||
'li',
|
||||
|
||||
Reference in New Issue
Block a user