Add helper method to sanitise and escape edit field html elements/attributes