Convert a DOM DocumentType into a string, e.g. "<!DOCTYPE html>"
Convert a DOM DocumentType (usually obtained via document.doctype) into a string, e.g.:
-
-
npm install "git+https://code.treora.com/gerben/doctype-to-string#latest"
..or
npm install doctype-to-string@latest
..or equivalent
import doctypeToString from 'doctype-to-string'
const string = doctypeToString(document.doctype)
CC0; do whatever you want with this code.