filter \n for jsp in backend instead of frontend