Do not remove HTML comment
See original GitHub issueWhene 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:
- Created 5 years ago
- Reactions:3
- Comments:8 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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.
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 !