Allow customization of banned tags?
See original GitHub issueHow do I allow tags in the banned list through? I have <iframe>
s and <script>
s that I need to allow through unchanged.
(Yes, I know where my HTML comes from. Yes, I know this goes against the package’s intentions but this is the only React HTML Parser that works in SSR.)
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Restrict tag deployment | Google Tag Manager for Web
Tag ID Classes
AB TASTY Generic Tag abtGeneric nonGoogleScripts
AdAdvisor Tag ta nonGoogleScripts
Adometry Tag adm google
Read more >A Complete List Of Banned Hashtags You Should Avoid In 2023
Hashtags are key to the growth of your Instagram, but banned hashtags can have the opposite effect. Read our extensive list today!
Read more >Warning when using a blacklisted tag - is it customizable?
Blacklisting a tag is a manual and last-ditch effort to curb the use of tags which are extremely detrimental to a site; the...
Read more >Tumblr goes overboard censoring tags on iOS to comply with ...
Tumblr has banned a long list of tags on iOS to comply with the App ... Selfie Series, which let you customize figurines...
Read more >Tag and Post Content Filtering - Tumblr Help
Keep in mind that this feature is only as good as the tags on a post allow it to be. It can only...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I don’t feel comfortable adding it to the interweave API, as people would just use it as an escape hatch and make things unsafe.
However, one thing you could do is extend the
Parser
and override the banned logic (https://github.com/milesj/interweave/blob/master/packages/core/src/Parser.ts#L84). Once parsed, pass the nodes toparsedContent
(https://github.com/milesj/interweave/blob/master/packages/core/src/Markup.tsx#L9). A bit of overhead, but should work.Which requires a wrapper (you probably know about https://github.com/reactjs/rfcs/pull/129). As I said I only know of this project on the workarounds list which works with Next.JS SSR.