Changeset 3204:b38693f350bb in livinglogic.python.xist

Show
Ignore:
Timestamp:
01/30/08 22:46:43 (12 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Use CDATA section. Unwrap a line.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • docs/XIST_Howto.xml

    r3194 r3204  
    153153<p>For example, parsing a string can be done like this:</p> 
    154154<example><h>Parsing a string</h> 
    155 <prog> 
     155<prog><![CDATA[ 
    156156from ll.xist import parsers 
    157157from ll.xist.ns import html 
    158158 
    159 node = parsers.parsestring( 
    160     "&lt;p&gt;Hello &lt;a href='http://www.python.org/'&gt;Python&lt;/a&gt; world!&lt;/p&gt;" 
    161 ) 
    162 </prog> 
     159node = parsers.parsestring("<p>Hello <a href='http://www.python.org/'>Python</a> world!</p>") 
     160]]></prog> 
    163161</example> 
    164162