I display Google Local Search results in custom InfoWindows and text input fields. Recently I discovered that if place titles have html entity characters in their name such as ", they show up in their encoded forms if I print them with:

$(obj).text(title);

One way to convert/decode to normal text:

$(obj).text($('<span/>').html(title).text());

I agree, it’s not very pretty. If you know a better way please let me know!


blog comments powered by Disqus