LIB: function to decode html entities