better formatting and returning it html safe