1
0
Fork 0
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:
vrana 2012-01-16 16:42:14 -08:00
parent 5f1438354b
commit 8bed2f4387

View file

@ -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>'.