Umm, there's probably a better way of doing this, but the browser
"unescapes" the string to render it, so scrapeText would do the trick:

s2.innerHTML = '<b>foo</b> bar'; //escaped HTML
s2.innerHTML = scrapeText(s2);

shoe

On 12/19/06, Miki <[EMAIL PROTECTED]> wrote:


Hello David,

> It's difficult to say what's not working without a complete example (e.g
.
> what does 'data' contain).  I tried this at the MochiKit demo javascript
> interpreter:
> s1 = SPAN('<b>foo</b> bar');
> s2 = SPAN();
> s2.innerHTML = '<b>foo</b> bar';
> writeln(s1);
> writeln(s2);
>
> and it works as expected.
Hmmm, "data.description" has something like "<b>Korea</b> reaffirms
...".
However my *guess* is that the HTML in "data.description" is escaped
somehow, I there a way to "unescape" it?

Thanks for the effort,
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 mochikit@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to