MCPcopy Create free account
hub / github.com/CoderOpen/waimai / removeDOCTYPE

Function removeDOCTYPE

front/common/html-parser.js:253–255  ·  view source on GitHub ↗
(html)

Source from the content-addressed store, hash-verified

251}
252
253function removeDOCTYPE(html) {
254 return html.replace(/<\?xml.*\?>\n/, '').replace(/<!doctype.*>\n/, '').replace(/<!DOCTYPE.*>\n/, '');
255}
256
257function parseAttrs(attrs) {
258 return attrs.reduce(function (pre, attr) {

Callers 1

parseHtmlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected