Skip to content

Commit

Permalink
fixing lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamel A authored and harttle committed Aug 25, 2019
1 parent a00945c commit aa15f3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/builtin/filters/html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const unescapeMap = {
}

function escape (str: string) {
return !!str ? String(str).replace(/&|<|>|"|'/g, m => escapeMap[m]) : ""
return str ? String(str).replace(/&|<|>|"|'/g, m => escapeMap[m]) : ''
}

function unescape (str: string) {
Expand Down

0 comments on commit aa15f3d

Please sign in to comment.