change formatting to fit and prevent html encoding