HTML comments delete page code when saving
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
6 hours ago
When wrapping HTML page code in comment tags
<!--
Some lines of HTML page code here
-->
and saving, the commented-out code disappears for good.
This is bad, what can one do?
Solved! Go to Solution.
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 hours ago
Looks like that's just code that Canvas won't allow unfortunately. Here's another post someone had on this topic.
If you're using comments to hide things on a page, a workaround could be adding a div around the things you're wanting hidden with a display: none attribute.
EX)
<div style="display: none;">
content you'd like hidden
</div>