How to print a pound “£” in html file?

前端 未结 7 1148
再見小時候
再見小時候 2021-01-21 06:43

i am trying to display a pound sign in my html page.i want to display it through a variable because i am getting the values of sign from an xml file.

Here is Code:

7条回答
  •  鱼传尺愫
    2021-01-21 07:11

    It is:

    £ 
    

    or

    £
    

    You can check other encodings here:

    http://www.w3schools.com/html/html_entities.asp

    And here is a demo on how to do it: Online Demo

    var sign = "£";
    $('#demo').html(sign+124.5);
    

提交回复
热议问题