On 26 August 2010 23:11, tomi <[email protected]> wrote:
>
> For example, the name is: "United Kingdom", this library display:
> "United
> Kingdom".
>
> Have you some solution of this problem?

Replace a space with a non-breaking space &nbsp;

text.replace(/ /g,"&nbsp;")

Note the space between the slashes in the regular expression.
http://www.w3schools.com/jsref/jsref_replace.asp

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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/google-maps-api?hl=en.

Reply via email to