escape entities

encode and decode html entities