Bubble Foundry


Posts tagged with: character entity references

HTML and XML Character Encoding Gotchas in Javascript
Recently I was trying to execute the following Javascript with jQuery: $("#someid").append("<div>...&deg;C</div>"); I was going crazy because it worked (a degrees symbol – ° – was shown) on one page but not another, where nothing was displayed or returned by the append method. After much frustration I stumbled on a solution and I’m sharing it […] Read more – ‘HTML and XML Character Encoding Gotchas in Javascript’.