How to escape charaters in the title of a marker in a Google Maps?

Posted by Anthony on Stack Overflow See other posts from Stack Overflow or by Anthony
Published on 2010-03-24T08:36:18Z Indexed on 2010/03/24 12:23 UTC
Read the original article Hit count: 282

Say I have this piece of code:

var marker = new google.maps.Marker({
    position: location,
    title: 'Búfals',
    map: map
});

This creates a marker as expected but if I hover the mouse over it I don’t see 'Búfals'
as I would expect (instead I see the html code).

This doesn't make any difference:

var marker = new google.maps.Marker({
    position: location,
    title: unescape('Búfals'),
    map: map
});  

Any ideas?

Thanks.

© Stack Overflow or respective owner

Related posts about google-maps

Related posts about marker