<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="//www.submisscin.com/wap/#" OnClick=showhint()>显示原字符串</a><br>
<a href="//www.submisscin.com/wap/#" OnClick=showhint2()>显示剔除HTML代码后的字符串</a>
更多信息请查看IT技术专栏