I have a problem with my database using SQLite Manager. I have created a field with VARCHAR type and I am retrieving the mySQL entry using javascript. I have a paragraph of text I am trying to retrieve that I need line breaks in because it just pulls all the information in. I have tried <br> /n and a few others but it always just shows them and doesn't do the line break. Can anyone help me out with this problem? The code I am using to retrieve my text is here:
for (var i=0; i < len; i = i + 1) {
treat = results.rows.item(i);
$("#warning").append("<li class='treatment'>" + treat.Tips + "</li>");
$("#warning-text").text(treat.Tips);
$('#warning').listview('refresh');
Aucun commentaire:
Enregistrer un commentaire