intFromHex

fnint intFromHex(string hex)

helper function for decoding html entities