sanitizes footer content before outputting