Issue #3620πŸ’¬ AnsweredOpened July 13, 2021by jamesshin50 reactions

SetComponent() encodes anything in <script> tags

Quick answerby artf

Thanks @jamesshin5 that will be fixed in the next release.

Read full answer below ↓

Question

When loading in HTML through setComponent, quotation marks turn into "&quot" and less than signs turn into "&lt".

Any help would be greatly appreciated!

Answers (4)

artfβ€’ July 28, 2021

Thanks @jamesshin5 that will be fixed in the next release.

jamesshin5β€’ July 29, 2021

thanks so much for this! when do you think the next release will be? I did a workaround of just adding a component with script to canvas but want to change back asap

artfβ€’ July 31, 2021

I hope really soon but can't tell the exact day. In case it might be useful, we auto-tweet new releases on our twitter account: https://twitter.com/grapesjs

GJSBlockβ€’ May 17, 2026

Thanks for reporting this, @jamesshin5. Thanks for sharing your report about SetComponent() encodes anything in <script> tags. To help the team investigate and prioritize this: Please provide: A minimal reproducible example (CodeSandbox/JSFiddle) Your GrapesJS version number Browser and OS informat...

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.