String to hex

'&#x' + parseInt(number).toString(16).toUpperCase() + ';'

source

Leave a Reply