On 11/4/05, Jeff Grimmett <[EMAIL PROTECTED]> wrote:
> 1) For example: "Hello to <b>71.99.233.43</b>" will be reproduced exactly
> that way if it's extracted into a Kid template - i.e. the <b> markup is seen
> verbatim without being rendered as a "bold" tag.
>
> 2) So I tried changing that to "Hello to
> &lt;b&gt;71.99.233.43&lt;/b&gt;" - escapting my HTML. What
> happened THEN was that the text was truncated - the first escaped tag marked
> the end of the data, apparently.

This is Kid doing the "right thing" for a templating system. There are
various bad things that can happen if you accidentally bring in HTML
content from the wild and display it on your site. So, by default, Kid
escapes everything so that the content you provide Kid is displayed
exactly as Kid received it.

You can use the built in XML() function to tell Kid that the incoming
content is XML and ready for display. (You can see this in action in
the 20 Minute Wiki.)

> I looked at the resulting HTML for case (1) above, and what is happening is
> that the < character is being escaped; > is not.

Now that's just weird. Sounds like a bug to me.

You weren't using the XML function, were you?

Kevin

Reply via email to