Hello to all.
Why this works: <div py:content="XML(client.obs.replace('\n', '&lt;br /
&gt;'))"></div>
And, if I try this: <div py:content="XML(client.obs.replace('\n',
'&lt;br /&gt;').replace('<', '&lt;'))"></div>
I get a not well-formed (invalid token) error, just in the character
'<'

On Sep 9, 4:17 pm, gjhames <[EMAIL PROTECTED]> wrote:
> It works! Thanks to all!
>
> On Sep 8, 5:00 pm, Christoph Zwerschke <[EMAIL PROTECTED]> wrote:
>
> >gjhamesschrieb:
>
> > > Bastian, this error is happening:
> > > ExpatError: Error parsing XML file '/home/user/src/edit.kid':
> > > <div py:content="XML(client.obs.replace('\n', '<br />'))"></div>
>
> > This is not well-formed XML. "<" inside attributes must be escaped:
>
> > <div py:content="XML(client.obs.replace('\n', '&lt;br />'))"></div>
>
> > -- Christoph
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to