Usually if you're dealing with an HTML string you should use innerHTML. So, try creating the span element and setting it's innerHTML attribute to the HTML string.
HTH, David Shoemaker On 12/19/06, Miki <[EMAIL PROTECTED]> wrote:
Hello, I'm loading JSON using loadJSONDoc. One of the attributes of the JSON document is a HTML string. If I try to add it as-is to the DOM (using SPAN(data.content), I see the HTML tags (instead of getting the right HTML). For example: If the string sent is "<b>No</b way", I'll see "<b>No</b way" and not "No" in bold and then "way". If there a way to create a DOM object from the JSON attribute? Thanks, Miki >
-- --- I'd give my right arm to be ambidextrous. --- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MochiKit" 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/mochikit?hl=en -~----------~----~----~----~------~----~------~--~---
