如何使用分隔文本符号(小于),而在我的网页HTML得到错误? [英] How to use delimiter text symbol (<) without getting HTML error on my webpage?

查看:159
本文介绍了如何使用分隔文本符号(小于),而在我的网页HTML得到错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有关我的网页的翻页功能,我将用符号<这是一个分隔符。当我运行一个HTML检查它给我这个错误:

For the paging function on my webpage I will be using the symbol < which is a delimiter. When I run an html check it give me this error:

Line 747, Column 318: character "<" is the first character of a delimiter but occurred as data 
…quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, true))"><<   </a>

我知道必须有一个方法来解决这个问题。这里是我的aspx code样子:

I know there has to be a way to get around this problem. Here is what my aspx code looks like:

 <td>
     <asp:LinkButton ID="PagerPrev" runat="server" CommandName="Page" CommandArgument="Prev"
    Text="<&nbsp;&nbsp;&nbsp;" ToolTip="Previous" />
</td>

如果你看到后马上文字=我用&LT;并且那是什么HTML错误检查正在回升。
帮助是AP preciated。

If you see right after Text=" I used < and thats what the html error checker is picking up. Help is appreciated.

推荐答案

您必须设有code像你与非中断空格所做的:

You have to encode it like you did with the non breaking spaces:

&LT;&放大器; LT;

&gt;中&放大器; GT;

这篇关于如何使用分隔文本符号(小于),而在我的网页HTML得到错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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