I forgot about el.outerHTML so I made this, it takes a DOM element and returns its html as string
-
Updated
Feb 7, 2022 - JavaScript
I forgot about el.outerHTML so I made this, it takes a DOM element and returns its html as string
Add a description, image, and links to the htmltostring topic page so that developers can more easily learn about it.
To associate your repository with the htmltostring topic, visit your repo's landing page and select "manage topics."