Use s_html library by Spuzzum (hex2num, invertHTML and num2hex replaced by this).