MCPcopy
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 */
83const 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

proxyToAmpProxyFunction · 0.85
app.jsFile · 0.85
app-utils.test.jsFile · 0.85

Calls 2

getCdnUrlRegExpFunction · 0.85
replaceMethod · 0.45

Tested by

no test coverage detected