display html in browser

  • Thread starter Thread starter Peter Kirk
  • Start date Start date
P

Peter Kirk

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
 
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.

Could it be HtmlEncode I am looking for?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top