从HTML中提取地址时的URLDecode或HTMLDecode? [英] URLDecode or HTMLDecode when extracting an address from HTML?
本文介绍了从HTML中提取地址时的URLDecode或HTMLDecode?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我从HTML文件中的锚标记中提取地址,然后使用Response.Redirect()重定向到它。 在将其传递给重定向功能之前,我是否需要在URL上调用HTMLDecode,URLDecode或两者? 我来到的其中一个网址,而测试中有一个& amp而不是&,我认为这意味着我需要使用HTMLDecode功能。 任何人都可以告诉我正确的电话,以便我知道这将永远有效。  
I am extracting an address from an anchor tag in an HTML file and then redirecting to it using Response.Redirect(). Do I need to call HTMLDecode, URLDecode or both on the URL before I pass it to the redirect function? One of the URL's I came across while testing has a & instead of the &, which I would assume means I need to use the HTMLDecode function. Can anyone tell me the correct calls to make so that I know this will always work.
推荐答案
在 ASP上发布您的问题。 NET论坛。该论坛的成员可以更好地回答您的问题。
Post your question on ASP.NET Forum. Member on that forums can answer your question better.
这篇关于从HTML中提取地址时的URLDecode或HTMLDecode?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文