All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
C#中利用SharpZipLib进行压缩和解压_[Asp.Net教程]
SQL,Server,2005,Reporting,Services,初次使用感受_[SQL,Server教程]
C#中goto语句的使用方法
C#如何把html中的相对路径变成绝对路径_[Asp.Net教程]
ASP.NET2.0中Tabs的简单实现_[Asp.Net教程]
Cookie跨域、虚拟目录,,实现通行证登录_[Asp.Net教程]
server2008系统安装Microsoft.NET,Framework3.5_.net资料_编程技术
基于AJAX技术实现Struts校验框架_[AJAX教程]
让IIS支持PHP操作过程_php资料_编程技术
叩开C#之门系列之几个重要名词_[Asp.Net教程]
Reading number is top 10 pictures
陪睡门马睿菈自曝写真 称首拍大尺度照片3
人造器官和铁肺人
含苞欲放的素颜美少女1
传销的好处
去瑜伽会所面试的经过
中国的阶级现状
深圳的风光
日本小萝莉1
西班牙山村小景3
BingBingFan apple dew point photo gallery5
Download software ranking
The Bermuda triangle1
Tram sex maniac 2 (H) rar bag9
Call Of Duty5
Ashlynn Video4
1400篇各类破解文章
WebService在.NET中的实战应用教学视频 → 第4集
Visual C++界面编程技术
matrix1
Wild things 2
XML+Web+Service开发教程
归海一刀 published in(发表于) 2014/1/30 1:30:38 Edit(编辑)
一段HTML代码组成的页面取其中前300个字_[Asp.Net教程]

一段HTML代码组成的页面取其中前300个字_[Asp.Net教程]

一段HTML代码组成的页面取其中前300个字_[Asp.Net教程]
public static string RemoveHtmlTag (string source)
{
int debut;
int fin;
string theTag;

debut = source.IndexOf("<");
fin = source.IndexOf(">");

while ((debut >= 0) && (fin > 0))
{
debut = source.IndexOf("<");
fin = source.IndexOf(">");
if (debut >= fin)
{
debut = 0;
}
fin = fin - debut;
theTag = source.Substring (debut, fin + 1);
if (theTag != "")
{
source = source.Replace (theTag,"");
}
}

source = source.Replace("&nbsp;", " ");
source = source.Replace("&gt;", ">");
source = source.Replace("&amp;", "&"); // Trim
return source;
}

用SubString () 截取前300个字符



添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.