How to show symbol ℃ instead of the word?

Viewed 266

I have a simple page in my Wordpress side and want to use symbol ℃ in it.

I've changed the code related to link(see below):

https://www.alt-codes.net/degree_sign_alt_code.php

//code adjusted as below

title:{
          //initial text with a word Celsius        
             text: "Average low winter temperature  in  Celsius"

              //I've changed code as below:
             // text: "Average low winter temperature  in  '&#8451'"
  },

..but output shows extra characters instead of symbol ℃.

How to show symbol ℃ instead of word 'Celsius'?

thanks

3 Answers

You may escape it with Unicode, use \u2103

title: {
   text: "Average low winter temperature \u2103" 
   // expected Average low winter temperature ℃
}

Here is the HTML code for your requirement

<p>I will display &#176;C</p>

Also check other ways to display the degree symbol here

Here is the code you need

 <p>I will display &#x2103;</p>
Related