[ARCHIVED] HTML Comment out

Jump to solution
chris_slupianek
Community Novice

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. 

Labels (2)
2 Solutions
Stef_retired
Instructure Alumni
Instructure Alumni

 @chris_slupianek ​, 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.

View solution in original post

Update -

If you use

<div style="display: none;">

</div>

instead of <span...

then it appears to be persistent. Info found here: Re: Aceptable HTML Elements

View solution in original post