question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow customization of banned tags?

See original GitHub issue

How 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:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
milesjcommented, Jul 2, 2020

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 to parsedContent (https://github.com/milesj/interweave/blob/master/packages/core/src/Markup.tsx#L9). A bit of overhead, but should work.

0reactions
tyteen4a03commented, Jul 1, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found