question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Do not remove HTML comment

See original GitHub issue

Whene you put some content to edit with grapesjs, the editor remove all HTML comment like <!--[if !mso]><!-- --> so it’s impossible to create good responsive template.

Can you fix that behavior ?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:3
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Aug 27, 2018

@artf could you advice in here ?

This is mandatory behaviour to keep HTML comments within email HTML body. Otherwise, outlook will not show our template properly.

@IceCrystal0k your solution works when getting HTML body, but when email is being edited in Grapes - it shows up without comments.

0reactions
alxcas1commented, Apr 25, 2019

Hello and thank you for this really nice editor which is Grapejs.

I’m using it with grapejs newsletter and have the same issue as @SwithFr and the conditional comment tag in the editor.

We try to implement the component mentioned above and it works well but in the edition mode, all the comments are displayed.

I didn’t found if a commit is plan to let grapejs editor read the conditional comment tag or if someone can help on fixing that displaying comment bug.

Thank you all !

Read more comments on GitHub >

github_iconTop Results From Across the Web

Remove HTML comments with Regex, in Javascript
I recently needed to do this very thing (i.e. Remove all comments from a html file). Some things that these other answers don't...
Read more >
stevemao/remove-html-comments - GitHub
Remove comments in html. Contribute to stevemao/remove-html-comments development by creating an account on GitHub.
Read more >
Hiding/Unhiding Items With HTML Comments
Commenting out items is useful when you don't want to completely delete something. Using HTML comments will let you add or remove ......
Read more >
remove-html-comments - npm
Start using remove-html-comments in your project by running `npm i remove-html-comments`. There are 2 other projects in the npm registry ...
Read more >
[Question] Blazor server - how to remove html comments in ...
When looking at the html source code a lot of HTML comments <!-- !–> are automatically added. How can this be removed?
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found