Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
253
function
removeDOCTYPE(html) {
254
return
html.replace(/<\?xml.*\?>\n/,
''
).replace(/<!doctype.*>\n/,
''
).replace(/<!DOCTYPE.*>\n/,
''
);
255
}
256
257
function
parseAttrs(attrs) {
258
return
attrs.reduce(
function
(pre, attr) {
Callers
1
parseHtml
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected