Solved
I forgot escape_javascript:
$('#event_municipality_id').html("<%= escape_javascript(opts) %>");
bye, Alessandro