Escaping the header and footer template data before storing in MySQL.