0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

copy(document.documentElement.outerHTML); がHTML保存の優勝

0
Posted at

HTMLを保存する時に困るケース

ブラウザの機能でHTML保存をすると、JavaScriptが動く前のHTMLを保存してしまう。
生成AIにプログラムさせた後のHTMLの結果を「ダメだったよ」と伝える時にこまる。

解決策

以下をDevToolsのコンソールで実行。

copy(document.documentElement.outerHTML); 
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?