I get data from backend, and I want to split the string data which has \ (backslash) symbol in it to new line. I have variable voucher[] to hold response data, and call every data variable like voucher.name, etc.
ex:
term --> 1.Hello world\2.We are one\3.Together stronger
output --> 1.Hello world
2.We are one
3.Together stronger
I already try to use split('\n') --> voucher.term.split('\n') like this, but it can't. Can someone help me ?