title: Disabling HTML on Comments
body: <p>I've been researching for the past few hours, trying to find a way to disable HTML in WordPress comments.  So far this one consistently appeared on top of Google search results numerous times:</p>
  
  <pre><code>// This will occur when the comment is posted
  function plc_comment_post( $incoming_comment ) {
  
  // convert everything in a comment to display literally
  $incoming_comment['comment_content'] = htmlspecialchars($incoming_comment['comment_content']);
  
  // the one exception is single quotes, which cannot be #039; because WordPress marks it as spam
  $incoming_comment['comment_content'] = str_replace( "'", '&amp;apos;',         $incoming_comment['comment_content'] );
  
  return( $incoming_comment );
  }
  
  // This will occur before a comment is displayed
  function plc_comment_display( $comment_to_display ) {
  
  // Put the single quotes back in
  $comment_to_display = str_replace( '&amp;apos;', "'", $comment_to_display );
  
  return $comment_to_display;
  </code></pre>
  
  <p>This code did not work with the latest version of WordPress. I also found many more codes that again, did not work.  So how would one go about disabling HTML in WordPress 3.6 (the latest version) comments?</p>