Copying HTML code in Google Chrome's inspect element

后端 未结 4 448
迷失自我
迷失自我 2020-12-28 13:19

I have a website of which I want to copy an HTML code from - how do I copy all the text in inspect element - so I don\'t get the website\'s HTML code, but t

4条回答
  •  北荒
    北荒 (楼主)
    2020-12-28 13:31

    Do the following:

    1. Select the top most element, you want to copy. (To copy all, select )
    2. Right click.
    3. Select Edit as HTML
    4. New sub-window opens up with the HTML text.
    5. This is your chance. Press CTRL+A/CTRL+C and copy the entire text field to a different window.

    This is a hacky way, but it's the easiest way to do this.

提交回复
热议问题