473,395 Members | 1,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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
Nov 23 '05 #1
2 1518
"Peter Kirk" <pk@alpha-solutions.dk> skrev i en meddelelse
news:el**************@TK2MSFTNGP11.phx.gbl...
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?
Nov 23 '05 #2
yes it is HTMLEncode

"Peter Kirk" wrote:
"Peter Kirk" <pk@alpha-solutions.dk> skrev i en meddelelse
news:el**************@TK2MSFTNGP11.phx.gbl...
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?

Nov 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Dan R Brown | last post by:
I have a large form that is generated dynamically in a jsp using xml / xslt. So, to break up this form into several "tabbed" sections, I break up the form using <div> tags. Each <div...
19
by: dmiller23462 | last post by:
Hi guys....I have absolutely NO IDEA what I'm doing with Javascript but my end result is I need two text boxes to stay hidden until a particular option is selected....I've cobbled together the...
33
by: selowitch | last post by:
I've been searching in vain for a way to present typographically correct fractions (not resorting to <sup> and <sub> tags) but have been frustrated by the fact that the glyphs for one-half,...
1
by: Marek Kurowski | last post by:
Yo! I design web browser in VC++. I need a web browser, in which I can display html in a litle changed form. The best control is CHtmlView with IWebBorwser2 (do you know other way?). But in...
3
by: Bob | last post by:
I am pretty new at C#, so bare with me. I want to be able to read a local HTML file and display it in a browser window within my application. I also want to submit that page to my application and...
1
by: Oenone | last post by:
I've reached the conversion of a part of my application from VB6 to VB.NET which uses the COM Web Browser control to display HTML content generated by my application. The general approach used...
6
by: Doug Mazzacua | last post by:
I noticed that that <ul> lists display differently with <br> between <li>s in IE and Mozilla. Does anyone know of a reference that catalogs all of the known types of differences in display...
11
by: Webbert | last post by:
I am trying to display XML in a WebBrowser Control. I receive a data feed of XML and am trying to inject it into the control. I have not been successful in doing so. The only solution I have...
11
by: nickyeng | last post by:
I have a html file contains a form asking user to select a choice and press enter to pass the data to server. In server there, i have a cgi script(C language) that accepts the input from browser...
24
by: Adam | last post by:
Hi, Does anyone know of an online C-to-HTML converter to display code nicely formatted in a browser? Thanks a lot, Adam
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.