how to not escape ,escape character ?

how to not escape ,escape character ?

manish_pendsemanish_pendse Posts: 1Questions: 1Answers: 0
edited October 2017 in Free community support

sir,

">" href="#i-have-data-coming-form-back-end-as--->">i have data coming form back end as -->

"title":"\n \n \n \n L\n \n \n 2\n ,\n p\n \n \n -norm\n and sample constraint based feature selection and classification for AD diagnosis",

">" href="#and-it-display-on-data-tables-as--->">and it display on data tables as -->

L 2 , p -norm and sample constraint based feature selection and classification for AD diagnosis

i want to display as it is, \n and space are getting removed on DataTables.

i am using this code
''' if(aData.title){
console.log(aData.title);
newHTML= aData.title
$(nRow).find(".titleColumn").html(newHTML);
} '''

Please help,

Answers

  • allanallan Posts: 63,468Questions: 1Answers: 10,466 Site admin

    The question isn't easy to read, but:

    i want to display as it is, \n and space are getting removed on DataTables.

    \n is just white space and HTML does not render white space. You'd need to convert the \n to be <br>. If you can't do that in your data source, you could use a renderer to do it.

    Allan

This discussion has been closed.