Deschtex / html2react

A utility for turning raw HTML into React elements.
MIT License
43 stars 5 forks source link

makes <script/> overridable #23

Closed gfx closed 7 years ago

gfx commented 7 years ago

Ignoring <script/> by default is natural to me but I'd like to override it in some cases.

This PR makes <script/> overridable if users explicitly configure so.

Deschtex commented 7 years ago

@gfx Hey, sorry for the really late reply. As far as I know and have been able to verify, React does not allow script tags to be rendered. How would you benefit from this change?

gfx commented 7 years ago

@Deschtex

Yep, but I can anything if it's overridable. I'll provide a custom script loading component by overriding.

gfx commented 7 years ago

Thanks.