C#中的标签问题

suj*_*htm 0 c# asp.net

//This code will print the as per the request.
Response.Write("<<<<<<<=======>>>>>>>>>>");

//In this case its not writing as per the request.
Response.Write("<<<<<<<hello======>>>>>>>>>>");
Run Code Online (Sandbox Code Playgroud)

在这种情况下,它只打印<<<<<< >>>>>>>>>.表示删除所有文本,关联所有=符号.

这是什么问题?我只是写文字.但没有得到.

谁知道这个......帮助我?

Ram*_*esh 6

我相信<hello被视为标签.我建议使用

Response.Write(HttpUtility.HtmlEncode("<<<<<<<hello======>>>>>>>>>>"));
Run Code Online (Sandbox Code Playgroud)