Issue #885Opened February 20, 2018by kundarmah0 reactions

[Help Wanted]: Auto Stripping Tags with Variables?

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)

artfMarch 1, 20180 reactions

Just tested your code with the public demo, everything works as expected schermata 2018-03-01 alle 00 24 42

Try to check also the block content via the inspector console as it might also be some server-side effect

editor.BlockManager.get('login').get('content')
lock[bot]September 18, 20190 reactions

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

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.