$(document).ready(function(){$("#ctext").one("focus",function(){$("#ctext").parent().after('<div><label for="comment-preview">Comment Preview</label>:</div><div id="comment-preview"></div>')});var a="";$("#ctext").keyup(function(){a=$(this).val();a=a.replace(/<\/?[^>]+>/g,"").replace(/\n\n+/g,"<br /><br />");$("#comment-preview").html(a)})});