I have a font which works great except for one character: 0 Luckily the O is a perfect replacement, so I decided to write a bit of JQuery that would remove all zeros and replace them with capital Os:
$("body").html($("body").html().replace(/0/g,'O'));
This works great until I have a link on the page with a zero in it, for example:
<a href="http://92.21.52.108:9000">Our server</a>
This gets changed to:
<a href="http://92.21.52.1O8:9OOO">Our server</a>
I thought I’d try using $("body").text instead, but that totally doesn’t work.
How can I solve this particular problem given that I need to keep the font?
Thanks!
Using JQuery to do this is a very bad idea.
Either update the font to have an improved ‘0’, or use a different font.