- 论坛徽章:
- 18
|
5可用积分
大家好!
我有一个问题向大家请教。
有以下一个文本,我想把所有的html标签去掉,即把用尖括号<>括起来的内容全部去掉,另外空行也去掉。
原始文本:
<head><meta http-equiv='refresh' content='3600'>
<title>Welcome Page</title>
<base target=_blank></head>
<body>
<img src=../test.png><br><br><table border='2' align='center'>
If you have any question or comment, please send an e-mail to the <a href="mailto:master@abc.com">webmaster</a>.</pre></tt><br></td></tr></table><br>
<center><img src=/cgi-bin/dream/dream.cgi?id=test></center></body>
</html>
期望得到的文本:
Welcome Page
If you have any question or comment, please send an e-mail to the webmaster.
谢谢大家。
|
|