display html in browser

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Peter Kirk

    display html in browser

    Hi,

    I fetch data from database (lots of strings), and display them in an html
    table in a web browser. The problem is that some of the data can contain
    html, or at least stuff that looks like html, and that confuses the browser.
    What can I do so the browser just displays the string exactly as it comes
    from the database?

    I have looked at UrlEncode, and while this does allow the strings to be
    displayed without "problems", things like spaces are replaced with '+' and I
    don't want that either.

    Thanks,
    Peter


  • Peter Kirk

    #2
    Re: display html in browser

    "Peter Kirk" <pk@alpha-solutions.dk> skrev i en meddelelse
    news:elkNYdA8FH A.4036@TK2MSFTN GP11.phx.gbl...
    [color=blue]
    > I fetch data from database (lots of strings), and display them in an html
    > table in a web browser. The problem is that some of the data can contain
    > html, or at least stuff that looks like html, and that confuses the
    > browser. What can I do so the browser just displays the string exactly as
    > it comes from the database?
    >
    > I have looked at UrlEncode, and while this does allow the strings to be
    > displayed without "problems", things like spaces are replaced with '+' and
    > I don't want that either.[/color]

    Could it be HtmlEncode I am looking for?


    Comment

    • Santhi Maadhaven

      #3
      Re: display html in browser

      yes it is HTMLEncode

      "Peter Kirk" wrote:
      [color=blue]
      > "Peter Kirk" <pk@alpha-solutions.dk> skrev i en meddelelse
      > news:elkNYdA8FH A.4036@TK2MSFTN GP11.phx.gbl...
      >[color=green]
      > > I fetch data from database (lots of strings), and display them in an html
      > > table in a web browser. The problem is that some of the data can contain
      > > html, or at least stuff that looks like html, and that confuses the
      > > browser. What can I do so the browser just displays the string exactly as
      > > it comes from the database?
      > >
      > > I have looked at UrlEncode, and while this does allow the strings to be
      > > displayed without "problems", things like spaces are replaced with '+' and
      > > I don't want that either.[/color]
      >
      > Could it be HtmlEncode I am looking for?
      >
      >
      >[/color]

      Comment

      Working...