Closed krumware closed 5 years ago
(as discussed on slack) A line like this: <st-card name="S&P 500 Index"></st-card>
<st-card name="S&P 500 Index"></st-card>
or
<st-card name="S&P 500 Index"></st-card>
Causes: Attribute values may not contain unencoded HTML entities, e.g. use > instead of >eslint(lit/attribute-value-entities)
>
>
The regex is too dumb/catch-all.
we're matching & in & (my own stupidity).
&
&
better to do something like /([<>"]|&(?!(#\d+|[a-z]+);))/
/([<>"]|&(?!(#\d+|[a-z]+);))/
(as discussed on slack) A line like this:
<st-card name="S&P 500 Index"></st-card>
or
<st-card name="S&P 500 Index"></st-card>
Causes: Attribute values may not contain unencoded HTML entities, e.g. use
>
instead of>
eslint(lit/attribute-value-entities)