473,799 Members | 3,181 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Why does my browser not interpret the escaped HTML tags?

Hello peeplez. I have an odd problem. When I put the ANSI symbol for
"less than" ("<"), the word STRONG and then the ANSI symbol for
"greater than" (">") in my web page, followed by some text, then close
the STRONG tag the same way, my text appears in bold. No problem.

When I do the same things with the corresponding HTML tags (&lt; ,
&gt; ) the tag is not interpreted, it is simply displayed:

<STRONG>text</STRONG>

.... the same thing happens with any tag. What do I have to do to make
my browser (Firefox or Explorer) interpret the tag?

Thank you,
clueless ... I mean syg
Jul 23 '05
18 10517
sy**@yahoo.com (Robert Bowen) wrote:
Holy ... ! Man, I didn't intend to start a political conversation!
But you apparently intend to get ignored by knowledgedable people.
Upside-down quoting is a simple way, though not always reliable, for
that.
Oh yea, and I used the acronym ANSI because in Editplus that's what
it calls it. There is an option -- Edit :: HTML :: HTML to ANSI and
ANSI to HTML. Again, no political intention ...
Whether it has something to do with politics in your book is fairly
irrelevant. In that context, the use of the string "ANSI" is definitely
abuse of an organization's name for something that the organization has
_not_ defined or approved. In a word, bogosity.
Now, as to my problem. I don't actually WANT to use these characters
but for some reason when I save certain info in my Oracle database
(saved as a BLOB), when it is displayed on my jsp page, it is spit
out that way. Looking at the database it SEEMS as if it's being saved
"normally", as "<" and ">", and not the HTML symbols. But when it is
displayed, that's what comes out ...
Apparently you are trying to use a database without the necessary
prerequisites, such as understanding what's really happening. But that's
external to HTML.
From what you all are saying the browser's job, upon seeing these
tags, is to render them, and that's all. It doesn't care if these
symbols are used to render HTML tags. If it happens to be a "<" or
">" symbol, so be it, but it won't interpret them.


It seems that you need to read an HTML tutorial. Please come back when
you can at least describe your problem in an understandable way.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 23 '05 #11
On Thu, 2 Sep 2004, Jan Roland Eriksson wrote:
When I put the ANSI symbol...


"ANSI" is not really applicable to the WWW.

ANSI = American National Standards Institute
(USA based in reality).


ANSI® and USA® are registered trademarks of Microsoft Corporation.

--
Top-posting.
What's the most irritating thing on Usenet?

Jul 23 '05 #12
On Thu, 2 Sep 2004 15:42:12 +0200, Andreas Prilop
<nh******@rrz n-user.uni-hannover.de> wrote:
On Thu, 2 Sep 2004, Jan Roland Eriksson wrote: [...]
ANSI = American National Standards Institute
(USA based in reality).

ANSI® and USA® are registered trademarks of Microsoft Corporation.


I would not be surprised to find that to be true :-)

MS holds a patent on Style Sheets and XML markup too.

<http://www.google.com/search?q=Micros oft+Patent+Mark up>

<http://www.google.com/search?q=Micros oft+Patent+Styl esheet>

Several aspects of US market economy has gone nuts.
(and it's contagious, slowly creeping in over here too)

I will shut up from now on :-)

--
Rex
Jul 23 '05 #13
Lars Eighner <ei*****@io.com > wrote in message news:<sl******* **************@ goodwill.io.com >...
In our last episode,
<77************ **************@ posting.google. com>,
the lovely and talented Robert Bowen
broadcast on comp.infosystem s.www.authoring.html:
Hello peeplez. I have an odd problem. When I put the ANSI symbol for
"less than" ("<"), the word STRONG and then the ANSI symbol for
"greater than" (">") in my web page, followed by some text, then close
the STRONG tag the same way, my text appears in bold. No problem.

When I do the same things with the corresponding HTML tags (&lt; ,
&gt; ) the tag is not interpreted, it is simply displayed:

<STRONG>text </STRONG>


That is exact what is supposed to happen.
... the same thing happens with any tag. What do I have to do to make
my browser (Firefox or Explorer) interpret the tag?


You have to put the tag in literal "<" and ">". The point of have
the character entities &lt; and &gt; is to allow you enter these
characters in text so they *won't* be interpreted as opening and
closing tag symbols.


Ok, understood. Didn't know that. Thanks for the polite, informed and
attitude-free response. So despite what the previous poster said, you
understood what I said? Go figure.

I subscribe to a bunch of different lists, mostly J2EE-related and get
tons of questions all the time, many of which can be answered by
reading FAQs or snooping around Google before-hand. Perhaps my
question was of this nature. But I never tell people they are stupid,
sling attitude or flame.

Anyway, cheers to those who gave helpful comments!

syg
Jul 23 '05 #14
On 2 Sep 2004 10:43:08 -0700, Robert Bowen <sy**@yahoo.com > wrote:
Ok, understood. Didn't know that. Thanks for the polite, informed and
attitude-free response. So despite what the previous poster said, you
understood what I said? Go figure.

I subscribe to a bunch of different lists, mostly J2EE-related and get
tons of questions all the time, many of which can be answered by
reading FAQs or snooping around Google before-hand. Perhaps my
question was of this nature. But I never tell people they are stupid,
sling attitude or flame.


I and a few others gave you this advice, and I believe most of us were
matter-of-fact but polite. In fact, after reviewing all the direct answers
to your question, I find no responses which seem to me to carry any
negative attitude. So I fail to see what you're upset about, sorry if this
is insensitivity on my part.

But it seems a shame to be upset by a response or two when it's clear (to
me) most provided an answer without any perceivable "attitude".
Jul 23 '05 #15
Robert Bowen wrote:
Now, as to my problem. I don't actually WANT to use these characters
but for some reason when I save certain info in my Oracle database
(saved as a BLOB), when it is displayed on my jsp page, it is spit out
that way. Looking at the database it SEEMS as if it's being saved
"normally", as "<" and ">", and not the HTML symbols. But when it is
displayed, that's what comes out ...


I haven't seen your page, but my best guess is that the data is stored
correctly in the database, and that you're using a pre-written JSP
script which automatically adds the entities (that's what &lt; and &gt;
are called).
Jul 23 '05 #16
In our last episode,
<77************ **************@ posting.google. com>,
the lovely and talented Robert Bowen
broadcast on comp.infosystem s.www.authoring.html:
Lars Eighner <ei*****@io.com > wrote in message news:<sl******* **************@ goodwill.io.com >...
In our last episode,
<77************ **************@ posting.google. com>,
the lovely and talented Robert Bowen
broadcast on comp.infosystem s.www.authoring.html:
> Hello peeplez. I have an odd problem. When I put the ANSI symbol for
> "less than" ("<"), the word STRONG and then the ANSI symbol for
> "greater than" (">") in my web page, followed by some text, then close
> the STRONG tag the same way, my text appears in bold. No problem.
> When I do the same things with the corresponding HTML tags (&lt; ,
> &gt; ) the tag is not interpreted, it is simply displayed:

><STRONG>text </STRONG>


That is exact what is supposed to happen.
> ... the same thing happens with any tag. What do I have to do to make
> my browser (Firefox or Explorer) interpret the tag?


You have to put the tag in literal "<" and ">". The point of have
the character entities &lt; and &gt; is to allow you enter these
characters in text so they *won't* be interpreted as opening and
closing tag symbols.

Ok, understood. Didn't know that. Thanks for the polite, informed and
attitude-free response. So despite what the previous poster said, you
understood what I said? Go figure.


From later discussions, I understand your real problem is that some
software you are using saves tags using &lt; and &gt; I know this is
often the case with markup you are invited to copy (such as banner
codes). Experiment with various "Save As" options with your software.
Perhaps you will find one that will save what you see as < and > as <
and >. If you can't find one, I suggest you write a little perl
script or a macro for your text editor that will make these changes
for you.

--
Lars Eighner -finger for geek code- ei*****@io.com http://www.io.com/~eighner/
If it wasn't for muscle spasms, I wouldn't get any exercise at all.
Jul 23 '05 #17
Lars Eighner <ei*****@io.com > wrote in message news:<sl******* **************@ goodwill.io.com >...
In our last episode,
<77************ **************@ posting.google. com>,
the lovely and talented Robert Bowen
broadcast on comp.infosystem s.www.authoring.html:
Lars Eighner <ei*****@io.com > wrote in message news:<sl******* **************@ goodwill.io.com >...
In our last episode,
<77************ **************@ posting.google. com>,
the lovely and talented Robert Bowen
broadcast on comp.infosystem s.www.authoring.html:

> Hello peeplez. I have an odd problem. When I put the ANSI symbol for
> "less than" ("<"), the word STRONG and then the ANSI symbol for
> "greater than" (">") in my web page, followed by some text, then close
> the STRONG tag the same way, my text appears in bold. No problem. When I do the same things with the corresponding HTML tags (&lt; ,
> &gt; ) the tag is not interpreted, it is simply displayed:<STRONG>text </STRONG>

That is exact what is supposed to happen.

> ... the same thing happens with any tag. What do I have to do to make
> my browser (Firefox or Explorer) interpret the tag?

You have to put the tag in literal "<" and ">". The point of have
the character entities &lt; and &gt; is to allow you enter these
characters in text so they *won't* be interpreted as opening and
closing tag symbols.

Ok, understood. Didn't know that. Thanks for the polite, informed and
attitude-free response. So despite what the previous poster said, you
understood what I said? Go figure.


From later discussions, I understand your real problem is that some
software you are using saves tags using &lt; and &gt; I know this is
often the case with markup you are invited to copy (such as banner
codes). Experiment with various "Save As" options with your software.
Perhaps you will find one that will save what you see as < and > as <
and >. If you can't find one, I suggest you write a little perl
script or a macro for your text editor that will make these changes
for you.

What I have is a jsp page which has that Microsoft Internet Explorer
edit window which allows you to input HTML-marked-up text, with HTML
tags, etc. The JDBC driver sends it to the Oracle database which saves
it as a BLOB. I guess it's Oracle's BLOB storage which is making my
life miserable. I did a copy-paste direct from the database to a text
editor and viewed it in a browser, same problem -- the tags are not
interpreted.

I guess what I'll do it write a little parser in java that subsitutes
the symbols for the tags. Kind of defeats the purpose of saving
marked-up text but anyway.

BTW, I *was* only talking about the one poster who took it upon
himself to slag me off instead of offering help, or simply ignoring
me. Aside from him ALL responses *were* helpful, and I take this
chance to thank you all again.

syg
Jul 23 '05 #18
Robert Bowen wrote:

What I have is a jsp page which has that Microsoft Internet Explorer
edit window which allows you to input HTML-marked-up text, with HTML
tags, etc. The JDBC driver sends it to the Oracle database which saves
it as a BLOB. I guess it's Oracle's BLOB storage which is making my
life miserable. I did a copy-paste direct from the database to a text
editor and viewed it in a browser, same problem -- the tags are not
interpreted.

You are guessing about where the conversion occurs.
If the text is stored as a BLOB, there is no reason for the conversion
to char entities since the storage is binary, byte-for-byte exact, no
interpretation whatever. Why would it care?
The most likely place for the conversion is the special IE edit window.
Capture the output from that and see what it looks like.

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jul 23 '05 #19

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

Similar topics

6
3538
by: bayram guzer | last post by:
hi everybody, i have very strange error. i can not see some of the asp pages on my browser. when i look from view source, all the source is there but browser does not show anything, just an empty page. Does anybody have idea about this ?
11
2031
by: Saqib Ali | last post by:
Please excuse me, this is a fairly involved question that will likely require you to save the file below to a file and open it in a browser. I use Mozilla 1.5, so the problem I describe below should be reproducible with that version at least. BACKGROUND: =========== When you open this page in your browser, you will see a 4 cell table. The cells contain the following items respectively:
2
3730
by: Chris | last post by:
Im hoping someone can help me understand why this works? Requirement: Navigate DOM through javascript to perform DHTML actions. Issue: GIANT html document, up to 4MB in size, thousands and thousands of table rows. What didn't work:
19
9289
by: deko | last post by:
Firefox will not take the following "font-weight:bold" directive in my stylesheet. Works fine in IE. #rightMenuText h5 { font-weight:bold; padding-bottom:0px; padding-top: 10px; margin-bottom:0px; }
15
3327
by: lawrence | last post by:
Is this the correct way to test for a method before I use it? createRange() is, I believe, an IE only method. function wrapSelectionInTag(selection, tag) { if (document.selection.createRange) { var range = document.selection.createRange(); if (range.parentElement() == element) range.text = '<' + tag + '>' + range.text + '<\/' + tag + '>'; }
3
1862
by: Jarod_24 | last post by:
My program (it's a webcrawler) downloads htmlpages and in some cases the html has <script> </script> tags in it that generates parts of the html. How can i interpret this javascript and get the resulting html. Im hoping for something very simple: Dim page as string = downloadWebPage(www.page.com\index.htm) 'raw html Dim newPage as string = interpreter.processScripts(page)
44
2837
by: rhythmace | last post by:
W3C HTML validator passes this: .... <script type="text/javascript" src="foo.js"> <script type="text/javascript"> ....script in here... </script> ....
4
6972
by: liyanage | last post by:
I recently worked on error handling and three related issues/questions came up. 1.) I am trying to trigger Apache ErrorDocument handlers by setting appropriate HTTP status codes in my PHP code, but I don't get the expected results. My PHP file:
4
1939
by: Andy Dingley | last post by:
Another thread <http://groups.google.co.uk/group/alt.www.webmaster/msg/ e7d125cdff1ae2a2> linked to an accessibility checker at this site <http://wave.webaim.org/index.jsp> In their own (unimpressive) code I saw lots of inlined CSS, all beginning with the sequence "/*/*/" <div style="/*/*/background-color:#990000;">
0
9685
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9538
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10247
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10023
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9067
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6803
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5459
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4135
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3751
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.