Issue #885πŸ’¬ AnsweredOpened February 20, 2018by kundarmah0 reactions

Auto Stripping Tags with Variables?

Quick answerby artf

Just tested your code with the public demo, everything works as expected Try to check also the block content via the inspector console as it might also be some server-side effect

Read full answer below ↓

Question

When the custom block is added, it will strip HTML tags that contains the curly braces. The anchor link will be removed. Only the div will be rendered on the canvas. Is there a way that it will ignore the variables?


blockManager.add('login', {
        label: 'Login Block',
        content:`<div class="forgetpass">
                    <a href="{{forgotpasswordurl}}">{{#str}} forgotten {{/str}}</a>
                </div>`
});

Answers (2)

artfβ€’ March 1, 2018

Just tested your code with the public demo, everything works as expected Try to check also the block content via the inspector console as it might also be some server-side effect

lock[bot]β€’ September 18, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

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.