Re: Why does my browser not interpret the escaped HTML tags?

Giganews Newsgroups
Subject: Re: Why does my browser not interpret the escaped HTML tags?
Posted by:  Neal (neal4…@yahoo.com)
Date: Wed, 01 Sep 2004

On 1 Sep 2004 11:07:52 -0700, Robert Bowen <sy…@yahoo.com> wrote:

> Hello peeplez.

Grrr.. :)

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

That's correct.

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

That's also correct behavior. &lt; is used to make the UA render <, as an
actual < will be seen as the start of a tag.

> What do I have to do to make
> my browser (Firefox or Explorer) interpret the tag?

Use < and >.

If you're trying to get around some HTML filter in a web forum, tough
luck, this won't work. &lt; can't ever start a tag, it's a rendered
character.

Replies

None

In response to

Why does my browser not interpret the escaped HTML tags? posted by Robert Bowen on 1 Sep 2004