How to add safe markup in a template

78 views
Skip to first unread message

Max Ludwig

unread,
Dec 8, 2011, 10:51:09 AM12/8/11
to Genshi
Hi,

I have to add some invalid markup in a template. If I do so, Genshi
doesn't render it giving me a "TemplateSyntaxError: mismatched tag".

Is there a way to mark some markup as safe?

Thanks in advance

Max

Łukasz Michalski

unread,
Dec 8, 2011, 2:12:10 PM12/8/11
to gen...@googlegroups.com
W dniu 2011-12-08 16:51, Max Ludwig pisze:

> Hi,
>
> I have to add some invalid markup in a template. If I do so, Genshi
> doesn't render it giving me a "TemplateSyntaxError: mismatched tag".
>
> Is there a way to mark some markup as safe?
>

Embedding it in CDATA should help.

Regards,
Łukasz

Max Ludwig

unread,
Dec 12, 2011, 7:45:52 AM12/12/11
to Genshi
I solved it already without using invalid markup. Thanks anyway.
Reply all
Reply to author
Forward
0 new messages