I have text to display in HTML,for example :
var htmlStr = "1.first thing %10-15%. 2.second thing %25-44%. 3.third“
And i display it in div:
$('#div1').html(htmlStr);
but when I display it in a DIV1 in HTML5 on mobile phone I get the next thing:
1.first thing %10-15.2%.second thing %25-44.3%.third
(the mistake is : 15% – 15.2%)
Its happens in the iOS system,How can I using JavaScrip/jQuery fix it based on this rule?
Try to use
%instead of%.