we'd like to create a course about hacking; therefore we need to provide code examples, e.g. shell commands like chmod u+x filename , or PHP scripts, etc. If we try this, input validation prevents it and clicking "save and display" yields the following error message:
I'm logged in using the Manager role with "Trust submitted content" activated. Moodle version is 3.1.2, PHP 5.4.4.
Is there a simple method to allow the manager to add arbitrary text without content filtering / modification?
Do we need to (and how) escape every single example instead? Or should we even use image files containing our code examples instead?