0
有誰知道一個正則表達式驗證器或網站多數民衆贊成停在文本框使用腳本和HTML標記和文字區域正則表達式驗證腳本的HTML文本塊
更新時間:
public static string RegexReplace(string strin, string strExp, string strReplace)
{
return Regex.Replace(strin, strExp, strReplace);
}
public static string RemoveHTML(string strText)
{
return RegexReplace(strText, "<[^>]*>", string.Empty);
}
您的意思是在驗證器上使用OnServerValidate事件 – ONYX 2012-03-03 04:22:22
不,我的意思是您需要去除易失性腳本...清理輸入...抱歉,我要刪除「驗證」部分。 – 2012-03-03 04:24:21
我已更新我的帖子。像上面的東西會有用嗎?它不會說腳本,但可以用html代替腳本你覺得怎麼樣 – ONYX 2012-03-03 04:30:35