<script language="JavaScript">
<!--
var helphint = "<p>Hello <font color=red>websbook.com</font></p>";
function showhint(){
alert(helphint);
}
function showhint2(){
var re= /<\S[^>]*>/g;
helphint = helphint.replace(re,"");
alert(helphint);
}
// -->
</script>
<a href="#" OnClick=showhint()>显示原字符串</a><br>
<a href="#" OnClick=showhint2()>显示剔除HTML代码后的字符串</a>
中国足彩网信息请查看IT技术专栏