为什么"&安培;#39;"同时采用server.htmlde code(不获取转换为单引号)? [英] why "'" is not getting converted to single quotes while using server.htmldecode()?

查看:198
本文介绍了为什么"&安培;#39;"同时采用server.htmlde code(不获取转换为单引号)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么''',而使用server.htmlde code未得到转换为单引号()?

why ''' is not getting converted to single quotes while using server.htmldecode()?

什么是同时使用'做解码的最佳方式?

What is the best way to do the decoding while using '"'"?

推荐答案

这不是之前支持.NET 4中,但你可以使用此解决方法:

This was not supported prior to .NET 4, but you could use this workaround:

http://forums.asp.net/p/1598280/4058759.aspx

较新版本:

<一个href=\"http://weblogs.asp.net/vikram/archive/2010/02/18/htmlen$c$c-and-urlen$c$c-now-en$c$c-single-quotation-marks.aspx\" rel=\"nofollow\">http://weblogs.asp.net/vikram/archive/2010/02/18/htmlen$c$c-and-urlen$c$c-now-en$c$c-single-quotation-marks.aspx

这篇关于为什么&QUOT;&安培;#39;&QUOT;同时采用server.htmlde code(不获取转换为单引号)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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