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:
@@ -56,10 +56,12 @@ final class DifferentialLintFieldSpecification
|
||||
|
||||
$line_link = phutil_escape_html($line);
|
||||
if (isset($path_changesets[$path])) {
|
||||
$href = '#C'.$path_changesets[$path].'NL'.$line;
|
||||
$line_link = '<a href="'.phutil_escape_html($href).'">'.
|
||||
$line_link.
|
||||
'</a>';
|
||||
$line_link = phutil_render_tag(
|
||||
'a',
|
||||
array(
|
||||
'href' => '#C'.$path_changesets[$path].'NL'.$line,
|
||||
),
|
||||
$line_link);
|
||||
}
|
||||
$message_markup[] =
|
||||
'<li>'.
|
||||
|
||||
Reference in New Issue
Block a user