0

In my application i receive a string where i need to make that into two lines...when there is a @ character in that string....everything after that @ should come in the next line..

like if my string is 'My name is example @ My hobby is' it should display like My name is example My hobby is

tried using '\n' but it dnt work...

    var result= data.referenceNo.replace("@",'\n');
    <tr>{result}</tr>

@ character is getting replaced but its not getting into next line

sruthi_ys
  • 15
  • 5

0 Answers0