为什么我的浏览器无法解释转义的HTML标记? [英] Why does my browser not interpret the escaped HTML tags?

查看:269
本文介绍了为什么我的浏览器无法解释转义的HTML标记?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好peeplez。我有一个奇怪的问题。当我把ANSI符号用于

小于时("<"),单词STRONG,然后是

"大于& (">")在我的网页中,然后是一些文字,然后以同样的方式关闭

STRONG标签,我的文字以粗体显示。没问题。


当我使用相应的HTML标签做同样的事情时(& lt;,

& gt;)标签不会被解释,它只是显示:


< STRONG> text< / STRONG>


....任何标签都会发生同样的事情。我需要做什么才能使我的浏览器(Firefox或资源管理器)解释标签?


谢谢,

无知...我的意思是syg

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

推荐答案

" Robert Bowen" < SY ** @ yahoo.com>在消息中写道

news:77 ************************** @ posting.google.c om ...
"Robert Bowen" <sy**@yahoo.com> wrote in message
news:77**************************@posting.google.c om...
你好peeplez。我有一个奇怪的问题。当我把ANSI符号用于
小于时("<"),单词STRONG,然后是
大于的ANSI符号(">")在我的网页中,后跟一些文字,然后以同样的方式关闭STRONG标签,我的文字以粗体显示。没问题。

当我使用相应的HTML标签(& lt;,
& gt;)执行相同的操作时,标签不会被解释,只会显示:

< STRONG> text< / STRONG>

...任何标签都会发生同样的事情。我需要做些什么来使我的浏览器(Firefox或资源管理器)解释标签?
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?




不要使用字符实体& lt ;和& gt;除非你想要出现''<''和

''>''字符。



Don''t use the character entities &lt; and &gt; unless you want the ''<'' and
''>'' characters to appear.


Robert Bowen< sy * *@yahoo.com>写道:
Robert Bowen <sy**@yahoo.com> wrote:
你好peeplez。我有一个奇怪的问题。当我把ANSI符号用于
小于时("<"),单词STRONG,然后是
大于的ANSI符号(">")在我的网页中,后跟一些文字,然后以同样的方式关闭STRONG标签,我的文字以粗体显示。没问题。

当我使用相应的HTML标签(& lt;,
& gt;)执行相同的操作时,标签不会被解释,只会显示:

< STRONG> text< / STRONG>

...任何标签都会发生同样的事情。我需要做些什么来使我的浏览器(Firefox或资源管理器)解释标签?
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?




你需要使用


< strong> text< / strong>


而不是


& lt; strong& gt; text& lt; / strong& gt;


或者我错过了什么?

-

Darin McGrew, mc **** @ stanfordalumni.org http://www.rahul.net/mcgrew/

网页设计组, da *** @ htmlhelp.com http://www.HTMLHelp。 com /


世界欠你什么。它首先出现在这里。 - 马克吐温



You need to use

<strong>text</strong>

rather than

&lt;strong&gt;text&lt;/strong&gt;

Or am I missing something?
--
Darin McGrew, mc****@stanfordalumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp.com, http://www.HTMLHelp.com/

"The world owes you nothing. It was here first." - Mark Twain


2004年9月1日11:07:52 -0700,Robert Bowen< sy ** @ yahoo.com>写道:
On 1 Sep 2004 11:07:52 -0700, Robert Bowen <sy**@yahoo.com> wrote:
你好peeplez。


Grrr .. :)

我有一个奇怪的问题。当我把ANSI符号用于
小于时("<"),单词STRONG,然后是
大于的ANSI符号(">")在我的网页中,后跟一些文字,然后以同样的方式关闭STRONG标签,我的文字以粗体显示。没问题。


这是正确的。

当我使用相应的HTML标签做同样的事情时(& lt;,
& gt ;)标签不被解释,它只是显示:

< STRONG> text< / STRONG>

...任何标签都会发生同样的事情。


这也是正确的行为。 &安培; LT;用于制作UA渲染< ;,

actual<将被视为标签的开头。

我需要做什么才能使我的浏览器(Firefox或资源管理器)解释标签?
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?




使用<和> ;.


如果你试图在网络论坛中绕过一些HTML过滤器,那么很难运气,这不会起作用。 &安培; LT;不能开始标记,它是一个渲染的

字符。



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.


这篇关于为什么我的浏览器无法解释转义的HTML标记?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆