581
586
$comment_content = wpautop( $comment_content );
582
587
$comment_content = str_replace( '<br>', '<br />', $comment_content );
583
588
$comment_content = str_replace( '<hr>', '<hr />', $comment_content );
584
$comment_content = preg_replace_callback( '|<(/?[A-Z]+)|', create_function( '$match', 'return "<" . strtolower( $match[1] );' ), $comment_content );
589
$comment_content = preg_replace_callback( '|<(/?[A-Z]+)|', array( &$this, '_normalize_tag' ), $comment_content );
585
590
$comment_content = $wpdb->escape( trim( $comment_content ) );
587
592
// Get and convert the date