Re: textile does not replace &?

Aslak Raanes <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
På 6. okt 2004 kl. 11:18 skrev Gábor Farkas:

> it seems that the textile pyblosxom plugin does not replace '&'.
>
> if i write a blog entry with the text "a&b", i get "a&b" in the html
> file.


I think Roberto De Almeida explained why in the latest release of 
pytextile 
<http://dealmeida.net/en/Projects/PyTextile/pytextile_2_0_9.html>

> Paul had also asked about escaping ampersands in the original text, 
> replacing & for &amp;. After pondering a little bit, I concluded that 
> it’s not worth—the ampersands shouldn’t be escaped inside <pre> tags, 
> for example, so I would have to build a HTML parser to do it 
> correctly.
>
> The easy solution is to install mx.Tidy or µTidyLib and set 
> VALIDATE=1. This way you ensure that the generated XHTML is valid, and 
> that all ampersands are escaped properly.




-- 
Vennlig hilsen
Aslak Raanes, jobb: <tel:+47-735-98728>, mobil: <tel:+47-91897779>
<http://www.idi.ntnu.no/~aslakr/> <aim:goim?screenname=aslakraanes>



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.