I'm accessing a webservice to get the content to my website page and that content have some tags.
Instead of making a new line, html() function is printing <br /> in the middle of the string. Is there any other function to deal with html tags like it should?
I believe what he is saying is that he's getting some content from an external webservice and it contains html elements.
However, when outputting the content to the page using $(element).html(content); the html elements are outputted as is, instead of actually putting a line break in the content.
tags.
Instead of making a new line, html() function is printing <br /> in the middle of the string.
Is there any other function to deal with html tags like it should?
However, when outputting the content to the page using $(element).html(content); the html elements are outputted as is, instead of actually putting a line break in the content.
Am I right?
I tried $(element).text(content) too but the output is:
My file is encoded with utf-8 and when I make the request I'm using:
Any idea?