Has anyone got the "comment" tags to work in a published Canvas Page? Every time I add a comment <!-- Comment here --> to the page and publish it, Canvas wipes my code out.
Chris, the rule of thumb in the HTML Editor is that if you're using a tag that is not listed in the Canvas HTML Editor Whitelist, it will get stripped out. I know we've had specific questions in the past about the "comment" tag, which definitely doesn't stick.
There is a bit of a workaround although it is not ideal.
Click to edit the page and then click on HTML Editor.
Surround the text to be hidden with:
Then save without returning to the Rich Text Editor.
The reason that it is not ideal is that when you go in to the Rich Text Editor it will strip the tags out, so the next time you edit you will lose them (as edit always starts up in RTE as far as I know).
If you use
<div style="display: none;">
instead of <span...
then it appears to be persistent. Info found here: Re: Aceptable HTML Elements
Retrieving data ...