Escaping HTML
The cgi module that comes with Python has an escape function:
However, it doesn't escape characters beyond &, <, and >.
Here's a small snippet that will let you escape those as well:
Discussion
- (none yet)
The cgi module that comes with Python has an escape function:
However, it doesn't escape characters beyond &, <, and >.
Here's a small snippet that will let you escape those as well:
Unable to edit the page? See the FrontPage for instructions.