iain duncan <[EMAIL PROTECTED]> writes:
> One last question before I turn in. ;)
>
> If I want my javascript to be able to add strings that contain xhtml and
> not have that be escaped, is there someway to include a javascript file
> but have it be exempt from the kid xml constraints? Ie be able to do
> things like
>
> child_node = "this is a <b>BOLD</b> word";
>
> without having to add xml functions around the bold tags? Is this for
> some reason just a bad idea? Sometimes I find generating the element
> tree a bit more trouble than it's worth.
In your template:
${XML(child_node)}
But if you're using JavaScript then there's nothing on Kid... Just use
innerHTML (you'd have to build the DOM structure to be sure to have "100%"
compatibility with major browsers, since innerHTML works but sometimes it
doesn't ;-)).
--
Jorge Godoy <[EMAIL PROTECTED]>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---