character entity
A code such as < or & used in HTML to show a character, such as < or &, that would otherwise be read as markup.
Putting unescaped user input into a page lets an attacker inject scripts into it.
In more detail
Any text a user typed should be escaped before being put into a page, which Python does with html.escape. Otherwise the browser may treat it as tags or scripts.
Related terms
- HTML — The markup language that describes the structure and meaning of a web page with elements such as <button>, <input> and <h2>.
Taught in
- Literals, Identifiers And Keywords — Hands-on Python: Complete Video Course & Book
- HTML Forms And Dynamic Programs — Hands-on Python: Complete Video Course & Book