Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/ampproject/amphtml
/ toInaboxDocument
Function
toInaboxDocument
build-system/server/app-utils.js:83–86 ·
view source on GitHub ↗
(html)
Source
from the content-addressed store, hash-verified
81
* @
return
{string}
82
*/
83
const
toInaboxDocument = (html) =>
84
html
85
.replace(/<html [^>]*>/,
'<html amp4ads>'
)
86
.replace(getCdnUrlRegExp(
'v0'
),
'$1/amp4ads-v0$2'
);
87
88
/**
89
* @param {URL} url
Callers
3
proxyToAmpProxy
Function · 0.85
app.js
File · 0.85
app-utils.test.js
File · 0.85
Calls
2
getCdnUrlRegExp
Function · 0.85
replace
Method · 0.45
Tested by
no test coverage detected