Properly escape user-defined values to avoid XSS.
Also fixes links to modify/delete alert when alert name include quotes. Also limited alert name to 30 chars, as it is defined in the DB.