⇤ ← Revision 1 as of 2004-06-01 23:16:12
638
Comment:
|
638
|
Deletions are marked like this. | Additions are marked like this. |
Line 12: | Line 12: |
However, it doesn't escape anything beyond {{{&}}}, {{{<}}}, and {{{>}}}. | However, it doesn't escape entities beyond {{{&}}}, {{{<}}}, and {{{>}}}. |
Escaping HTML
The cgi module that comes with Python has an escape function:
However, it doesn't escape entities beyond &, <, and >.
Here's a small snippet that will let you escape those as well:
Discussion
- (none yet)