milesj / interweave

🌀 React library to safely render HTML, filter attributes, autowrap text with matchers, render emoji characters, and much more.
https://interweave.dev
MIT License
1.1k stars 38 forks source link

<meta not rendering at all #233

Closed cheddar123 closed 2 years ago

cheddar123 commented 2 years ago

Hello,

I am trying to insert meta tags from a cms, (use case is adding 3rd party site authentication to site).

So I created a meta tag <meta name="cms_test" content="This is a test" /> and it does not seem to render.

Any ideas?

-John

milesj commented 2 years ago

@cheddar123 Meta tags are not supported. Only tags within body are.

cheddar123 commented 2 years ago

Thanks for the quick reply. And good to know. I was able to solve the problem by using html-react-parser for this use case.