I kind of stumbled across this one, and thought I'd post it here in
case anyone else is looking for the same thing...

If you want to use the MochiKit DOM API to create element content with
non-breaking spaces (HTML  ), use Unicode character '\u00a0'.

E.g., using this to ensure all spaces in an <Option> content are
preserved:
[[
  OPTION( null, somestring.replace(/ /g, "\u00a0") )
]]

Maybe there's a better way?

#g


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to