               alert("Could not get modal info")
 
       $(document).on 'click', '.silence-submit-event', ->
-        misc = $(this).attr("misc")
+        misc = escapeString($(this).attr("misc"))
         if $('#text_input_' + misc).val().length < $('#text_input_' + misc).data("min")
           alert('Comment must be at least ' + $('#text_input_' + misc).data("min") + ' characters long')
           return false

              alert(data)

      $(document).on 'click', '.unsilence-submit-event', ->
        misc = $(this).attr("misc")
        $.post $(this).attr("rel"),
          (data) ->
            if data


    runPermanentHooks = ()->
      $(document).on 'keydown', '.silence-input', ->
        misc = escapeString($(this).attr("misc"))
        $('#no_input_' + $(this).attr("misc")).hide()
        if $(this).val().length >= $(this).data("min")
          $('[control="silence_submit_' + misc + '"]').addClass('btn-success').removeClass('btn-inverse')
