Relative Content

Tag Archive for javascriptangularregextypescript

Append new line if ‘n’ appeared in API response

I am working on some front end task , where I am showing some APIs response on UI
The thing is in my API response I am getting some messages which includes ‘n’.
So wherever ‘n’ is coming I want to append a new line here, means whatever data that is coming after ‘n’ from APIs it should go to the new line.