Changes for sanitising text formatting