Capabilities/moodle/site:trustcontent
From MoodleDocs
- This allows a user to enter JavaScript and other tags into places where all text is normally cleaned
- To make use of this capability, trusted content must first be enabled via Site administration > Security > Site security settings
- This capability is allowed for the default roles of manager and teacher