'how to copy the dynamic generate source of html in google chrome

In google chrome I have a dynamic generate html code, when I use the inspect html source, the source code did not contain the dynamic html. but when I tried to copy the html in source tab, it only copied the toppest div. what should I do to copy the full nested html code? I have tried all menu but no one work:

enter image description here

I have tried copy element in two levels:

enter image description here

when I execute the copy element in first div, it only copied one level, when I execute the copy element in second root div level , the copied full nested of html code. I did not know why could this happen. I am using macOS with google chrome 98.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source