Save current page as HTML to server

后端 未结 6 1803
一生所求
一生所求 2020-11-29 19:05

What approach could someone suggest to save the current page as an HTML file to the server? In this case, also note that security is not an issue.

I

6条回答
  •  清酒与你
    2020-11-29 19:06

    Use JavaScript to send document.getElementsByTagName('html')[0].innerHTML as hidden input value or by ajax to the server side. This is more useful than output buffering if the content is afterwards traversed/modified by JavaScript, which the server side might not have any notion about.

提交回复
热议问题