Issue #2286💬 AnsweredOpened September 23, 2019by Shah-ali1 reactions

Import html code with JavaScript events

快速解答by pouyamiralayi1

Hi there! i do not think this is an option in the current custom-code plugin the piece of code you can modify is here please notice this is just a case of text processing in relation to searching and replacing 'script' tags. cheers.

Read full answer below ↓

Question

<table class="table"><tr><td class="cell">Hello world!</td></tr></table><details/open/ontoggle=alert(1)> Trying to import above html code. getting alert after click on import button. Can i delete all javascript events while importing the html.

Please check attached screenshots.

Screenshot (107) Screenshot (108)

Answers (1)

pouyamiralayiSeptember 24, 2019

Hi there! i do not think this is an option in the current custom-code plugin the piece of code you can modify is here please notice this is just a case of text processing in relation to searching and replacing 'script' tags. cheers.

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.