<span id=sp></span>document.all.sp.innerText="<tr><td>ffffffffffasdfasdfasdfasdfsadfasdf</td></tr>";

解决方案 »

  1.   

    set objRE = New RegExp
    objRE.Pattern = "<\S[^>]*>"
    objRE.Global = True
    strExample = "<a href=><b>My flat mate has a flat tyre.</a></b></c>"
    ' Replace occurences of "flat" with "juicy"
    strExample = objRE.Replace(strExample, "")
    Response.write strExample
    Set objRE = Nothing
      

  2.   

    asp的話可以用Server.HtmlDecode,Server.HtmlEncode來轉換
      

  3.   

    HTML内容生成一個網頁 A ,以iframe的方式放在另一網頁 B 内,Width和Height均為0。
    然後就是 B 頁面的onload事件:
    <body onload="document.body.innerText=document.frames[0].document.body.innerText">
      

  4.   

    asp的話可以用Server.HtmlDecode,Server.HtmlEncode來轉換=======================================================>Microsoft VBScript 运行时错误 错误 '800a01b6' 对象不支持此属性或方法: 'HtmlDecode' /m2p.asp,行 59