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

前端 未结 7 1161
再見小時候
再見小時候 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:25

    Use £;

    $(this).text('£');
    
    • If you try this and it does not work, just change the jQuery methods,

      $(this).html('£');

    This always work in all contexts...

提交回复
热议问题