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 bf74251
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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
5 changes: 2 additions & 3 deletions lib/cli-engine/formatters/html.js
Expand Up @@ -14,10 +14,9 @@ const encodeHTML = (function() {
"<": "&#60;",
">": "&#62;",
'"': "&#34;",
"'": "&#39;",
"/": "&#47;"
"'": "&#39;"
};
const matchHTML = /[&<>"'/]/ug;
const matchHTML = /[&<>"']/ug;

return function(code) {
return code
Expand Down

0 comments on commit bf74251

Please sign in to comment.