Mention slight performance hit (quixote/doc/PTL.txt)
Andrew Kuchling <akuchlin-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected]> Tue, 07 Jan 2003 12:03:48 -0500
| Newsgroups | gmane.comp.web.quixote.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /home/cvs/quixote/doc In directory hewson:/tmp/cvs-serv18561 Modified Files: PTL.txt Log Message: Mention slight performance hit Index: PTL.txt =================================================================== RCS file: /home/cvs/quixote/doc/PTL.txt,v retrieving revision 1.17 retrieving revision 1.18 diff -u -d -r1.17 -r1.18 --- PTL.txt 7 Jan 2003 16:27:48 -0000 1.17 +++ PTL.txt 7 Jan 2003 17:03:46 -0000 1.18 @@ -124,8 +124,9 @@ Such bugs occur because it's easy to forget to HTML-escape a string, and forgetting it in just one location is enough to open a hole. PTL -offers a solution to this problem by optionally escaping strings -automatically when generating HTML output. +offers a solution to this problem by being able to escape strings +automatically when generating HTML output, at the cost of slightly +diminished performance (a few percent). Here's how this feature works. PTL defines a class called ``htmltext`` that represents a string that's already been HTML-escaped