Encoding special character for htmlText

does anyone know how to do a superscripted 3 with html text?

something like this:


my_txt.htmlText = "3(special character here) = 27";

thanks