character entity

A code such as &lt; or &amp; 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

Taught in

References