Convert some phutil_escape_html() to hsprintf()
Summary: Found by `sgrep_php -e '"...".phutil_escape_html(...)'`. Test Plan: / /D1 /uiexample/ /countdown/1/ /herald/transcript/1/all/ Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Maniphest Tasks: T2432 Differential Revision: https://secure.phabricator.com/D4869
This commit is contained in:
@@ -39,12 +39,7 @@ final class PhabricatorInlineSummaryView extends AphrontView {
|
||||
}
|
||||
}
|
||||
|
||||
$rows[] =
|
||||
'<tr>'.
|
||||
'<th colspan="3">'.
|
||||
phutil_escape_html($group).
|
||||
'</th>'.
|
||||
'</tr>';
|
||||
$rows[] = hsprintf('<tr><th colspan="3">%s</th></tr>', $group);
|
||||
|
||||
foreach ($items as $item) {
|
||||
|
||||
@@ -88,10 +83,8 @@ final class PhabricatorInlineSummaryView extends AphrontView {
|
||||
$rows[] =
|
||||
'<tr>'.
|
||||
'<td class="inline-line-number">'.$lines.'</td>'.
|
||||
($has_where ?
|
||||
'<td class="inline-which-diff">'.
|
||||
phutil_escape_html($where).
|
||||
'</td>'
|
||||
($has_where
|
||||
? hsprintf('<td class="inline-which-diff">%s</td>', $where)
|
||||
: null).
|
||||
'<td class="inline-summary-content"'.$colspan.'>'.
|
||||
'<div class="phabricator-remarkup">'.
|
||||
|
||||
Reference in New Issue
Block a user