I get a text box with a keyup function attached. When the user enters something, I want this text to appear inside the blockquote tag. It works, but id does not accept newlines and spaces. Could you help me?
$('#post_body').keyup(function() {
$('blockquote').find('span').text($(this).val());
source
share