[ZPT] CVS: Packages/TAL - HTMLTALParser.py:1.27

guido@digicool.com guido@digicool.com
Mon, 9 Apr 2001 10:35:41 -0400 (EDT)


Update of /cvs-repository/Packages/TAL
In directory korak:/tmp/cvs-serv26665

Modified Files:
	HTMLTALParser.py 
Log Message:
In handle_data(), use emitRawText() instead of emitText(), so that
<script> and <style> elements aren't mangled.

By nature of the parser, bare < and & cannot occur in the input data
(the parser raises an exception when it encounters these); bare > is
harmless.



--- Updated File HTMLTALParser.py in package Packages/TAL --
--- HTMLTALParser.py	2001/04/07 19:25:03	1.26
+++ HTMLTALParser.py	2001/04/09 14:35:39	1.27
@@ -276,7 +276,7 @@
         self.gen.emitRawText("&%s;" % name)
 
     def handle_data(self, data):
-        self.gen.emitText(data)
+        self.gen.emitRawText(data)
 
     def handle_comment(self, data):
         self.gen.emitRawText("<!--%s-->" % data)