Open jouni opened 4 years ago
<div style="--foo: bar;"></div>,
<div style="--foo: bar;"></div>
{ "--foo": "bar"}.
{ "--foo": "bar"}
{ "-Foo": "bar" }
https://github.com/wrakky/react-html-parser/blob/master/src/utils/inlineStyleToObject.js#L35-L37
Input HTML string
<div style="--foo: bar;"></div>
,Expected style object output
{ "--foo": "bar"}
.Actual output
{ "-Foo": "bar" }
Relevant part of the code
https://github.com/wrakky/react-html-parser/blob/master/src/utils/inlineStyleToObject.js#L35-L37