Skip to content

Commit

Permalink
Chore: Apply review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenwade committed May 20, 2021
1 parent 414766e commit e4d94ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/cli-engine/formatters/html-template-message.js
Expand Up @@ -18,7 +18,7 @@ module.exports = function(it, encodeHTML) {
<td class="clr-${severityNumber}">${severityName}</td>
<td>${encodeHTML(message)}</td>
<td>
<a href="${ruleUrl}" target="_blank" rel="noopener noreferrer">${ruleId ? ruleId : ""}</a>
<a href="${ruleUrl ? ruleUrl : ""}" target="_blank" rel="noopener noreferrer">${ruleId ? ruleId : ""}</a>
</td>
</tr>
`.trimLeft();
Expand Down
3 changes: 1 addition & 2 deletions lib/cli-engine/formatters/html.js
Expand Up @@ -14,8 +14,7 @@ const encodeHTML = (function() {
"<": "&#60;",
">": "&#62;",
'"': "&#34;",
"'": "&#39;",
"/": "&#47;"
"'": "&#39;"
};
const matchHTML = /[&<>"'/]/ug;

Expand Down

0 comments on commit e4d94ce

Please sign in to comment.