i have a serious problem with a php & JS, i have data stored in mysql databse as TEXTwhich contains new lines
i write text here this is line 2 i get an erroranyways when i fetch the data above from the database and try to load it back into a textarea using JS, i get an error because the text is written with multi-lines like this
$('text_area_id').set("text",'<?php echo $result; ?>');
the error i get is "expected end of a string..."does anyone know how to solve that?


Sign In
Create Account


Back to top









