Skip to content

Latest commit

 

History

History
6 lines (4 loc) · 362 Bytes

File metadata and controls

6 lines (4 loc) · 362 Bytes

Page source

Get the source of the page under test

Current HTML as text

You can get the current document's HTML using document.documentElement.outerHTML property. Then you can validate / sanitize the HTML. You can even write it back as text into the current browser to see it, as spec.js shows.