I have have to convert user input β to "& beta;" (I am leaving space because SO converts to β) while doing a form submit. I will take from the query parameter and send to the API. I looked for many library
This one does not convert. it works for & to & amp; http://amalhashim.wordpress.com/2012/10/19/jquery-html-encode-decode/
and
This one convert to different format, http://www.tumuski.com/code/htmlencode/
But I need & beta; .
I need a common function to htmlencode all special characters not β alone..
Please help..