I am getting "First Line.↵Second Line↵" as a string in an api response.I want to take this and print in html web page like <span></span>. where apiText is a javascript variable whose value is "First Line.↵Second Line↵". But the text appears on one line only.How to I convert ↵ to a format where it prints a break.
Aucun commentaire:
Enregistrer un commentaire