Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript
in jquery html()

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #36038
    XaviJr
    Participant

    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?

    #94366
    jamygolden
    Member

    I’m not really sure what you mean. Could you explain a bit more clearly?

    #94376
    XaviJr
    Participant

    That’s right. Sorry for the bad explanation, my English didn’t allowed a better one. :)

    I tried $(element).text(content) too but the output is:

    bla bla<br />bla bla

    My file is encoded with utf-8 and when I make the request I’m using:

    req.setRequestHeader("Content-Type", "text/xml;charset=utf-8");

    Any idea?

    #95376
    jamygolden
    Member

    Hmmm, why don’t you try using jQuery to get the requests?

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.