阅读背景:

如何使用C#验证字符串是否包含HTML

来源:互联网 

Does anyone have a simple, efficient way of checking that a string doesn't contain HTML? Basically, I want to check that certain fields only contain plain text. I thought about looking for the < character, but that can easily be used in plain text. Another way might be to create a new System.Xml.Linq.XElement using:Does anyone have a simple, efficient way of che




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: