chore(views): format attributes using api

Clean up log notices by using elgg_format_attributes()