mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-30 02:32:42 +01:00
Utilize phutil_render_tag()
Test Plan: Display diff with lint error. Reviewers: pad, epriestley Reviewed By: epriestley CC: aran Differential Revision: https://secure.phabricator.com/D1428
This commit is contained in:
parent
5f1438354b
commit
8bed2f4387
1 changed files with 6 additions and 4 deletions
|
@ -56,10 +56,12 @@ final class DifferentialLintFieldSpecification
|
||||||
|
|
||||||
$line_link = phutil_escape_html($line);
|
$line_link = phutil_escape_html($line);
|
||||||
if (isset($path_changesets[$path])) {
|
if (isset($path_changesets[$path])) {
|
||||||
$href = '#C'.$path_changesets[$path].'NL'.$line;
|
$line_link = phutil_render_tag(
|
||||||
$line_link = '<a href="'.phutil_escape_html($href).'">'.
|
'a',
|
||||||
$line_link.
|
array(
|
||||||
'</a>';
|
'href' => '#C'.$path_changesets[$path].'NL'.$line,
|
||||||
|
),
|
||||||
|
$line_link);
|
||||||
}
|
}
|
||||||
$message_markup[] =
|
$message_markup[] =
|
||||||
'<li>'.
|
'<li>'.
|
||||||
|
|
Loading…
Reference in a new issue