【发布时间】:2014-05-23 12:19:22
【问题描述】:
我的应用程序是在 asp.net mvc 4 中开发的。我们有工作列表。
现在我们允许在作业名称中使用所有特殊字符,但是
</ characters causes issue in creating <a> anchor tag. I have also tried to create anchor tag with these character on w3schools.com example. I noticed the same thing.
for example, job name => Test </ Test
but it will render ONLY "Test" NOT "Test </ Test".
我们正在使用 javascript 在“fnRowCallback”中创建此链接,因为它是作业列表,为此我们使用了 jquery 数据表 http://legacy.datatables.net/。
请帮助我,如何防止在 JobName 模型属性上使用正则表达式的字符。
提前致谢。
【问题讨论】:
标签: html asp.net-mvc-4 c#-4.0