sanitizes stuff in the footer and the functions