im sure this is a simple thing to do yet im still having some troubles, so im making an HTTP request to a music API, i would like to get the lyrics of a searched song, and so i did, and its working just fine, the problem is that in the console, the JSON string is in order, you know like normal lyrics.
But when i take that perfectly ordered string and put it into a Javascript variable and print it on screen, the lyrics appears in single lines like so:
This is the verse 1 This is the verse 2 This is the verse 3 This is the verse 4 This is the verse 5 and so on.
So this is my code.
axios.get(urlLyric, { 'headers': headers }) .then(function (response) { let lyrics = response.data.lyrics_body; console.log(lyrics); $(".lyrics").html(`<p>${lyrics}</p>`) }) .catch(function (err) { console.log(err); }); 
