Whitelisting?

Hi,

I’m the author of a textbook on web development and I’m set back by the HTML blacklisting - most notably the blacklisting of input elements, canvas elements, and the tabindex attribute. The textbook is hosted through eCampusOntario and I have approached them about whitelisting those elements, but they won’t do it for me. They suggested I post here to see if there’s some other solution for me. Any advice would be greatly appreciated!

Textbook is at Full Stack Web Development for Beginners – Simple Book Publishing

Thanks,
Sam Scott, McMaster University

Hi Sam,

It sounds like there’s some automatic sanitization happening here. I’m not sure whether it comes from WordPress or is a Pressbooks-specific issue. Can you provide a couple examples of sample HTML that you’d like to include within your teaching context to help us better understand what you’re trying to accomplish? A code snippet wrapped in ``` ought to work, or a sample file hosted in GitHub or some other cloud storage service.