怎样才能在Label中显示出空格?
为了能在Label中自动显示超链接我用了:
Regex regex = new Regex(@"(http:\/\/([\w.]+\/?)\S*)",RegexOptions.IgnoreCase| RegexOptions.CultureInvariant| RegexOptions.IgnorePatternWhitespace| RegexOptions.Compiled);
strContent = regex.Replace(strContent, "<a class=forum href=\"$1\" target=\"_blank\">$1</a>");
又为了能在Label中显示出空格我后面加了:
strContent = strContent.Replace(" "," ");
结果无法显示超链接,我查看了源文件超链接变成了:
<a class=forum href="http://www.vwintech.com/esale.rar" target="_blank">http://www.vwintech.com/esale.rar</a>
原来的空格都填上了 ,请问怎么办?