Damn Vegetables
Damn Vegetables

Reputation: 12504

Copying HTML as shown from Inspect Element in Google Chrome

Is there any way to copy HTML as I see in the Developer Tool (maintaining indentation & line-breaking)?

For example, when I copy outer HTML of a node from Google's search page, everything becomes one line.

As I see in the Developer Tool. enter image description here Copied enter image description here

Upvotes: 4

Views: 2643

Answers (1)

Mystic Coding
Mystic Coding

Reputation: 15

What you should do is right click and click "View Page Source" or hit control + u

And you can just copy and paste from there

Upvotes: 0

Related Questions