Issue #3447πŸ’¬ AnsweredOpened May 10, 2021by lbmir2 reactions

Javascripts are not working due to encoding issue

Quick answerby Ju99ernaut❀ 1

It's not recommended to use allowScripts: 1, anyways in your case why not just drag in the typed block, but if you have to include it in your from element use:

Read full answer below ↓

Question

1 - I copied Typed text components code instead of demo HTML code; 2 - And added allowScripts: 1;

You can see example here: http://bashworld.ru/demo.html press to View code and we see many encoded characters in JS.

How can I fix this issue? I need to decode all &, <, >, ' characters,

please see screenshow below wwww

Answers (4)

Ju99ernautβ€’ May 22, 2021

It's not recommended to use allowScripts: 1, anyways in your case why not just drag in the typed block, but if you have to include it in your from element use:

<div id="gjs">
   <div data-gjs-type="typed"></div>
</div>
lbmirβ€’ May 13, 2021

@artf Can you help please?

GJSBlockβ€’ May 17, 2026

Thanks for reporting this, @lbmir. Great suggestion about javascripts are not working due to encoding issue! While this specific feature isn't yet in the core API, there are several ways to achieve similar behavior. Using the event system: Alternative approaches: Listen to selector:add for CSS sele...

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.