Skip to content

Commit dea3a1f

Browse files
committed
Add the most commonly used HTML Entities
1 parent 17b20df commit dea3a1f

1 file changed

Lines changed: 21 additions & 1 deletion

File tree

lib/erb_lint/linters/hard_coded_string.rb

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,27 @@ class HardCodedString < Linter
1919
)
2020

2121
NON_TEXT_TAGS = Set.new(%w(script style xmp iframe noembed noframes listing))
22-
BLACK_LISTED_TEXT = Set.new(%w(&nbsp; &ensp; &emsp; &thinsp;))
22+
BLACK_LISTED_TEXT = Set.new(%w(
23+
&nbsp;
24+
&amp;
25+
&lt;
26+
&gt;
27+
&quot;
28+
&copy;
29+
&reg;
30+
&trade;
31+
&hellip;
32+
&mdash;
33+
&bull;
34+
&ldquo;
35+
&rdquo;
36+
&lsquo;
37+
&rsquo;
38+
&larr;
39+
&rarr;
40+
&darr;
41+
&uarr;
42+
))
2343

2444
class ConfigSchema < LinterConfig
2545
property :corrector, accepts: Hash, required: false, default: -> { {} }

0 commit comments

Comments
 (0)