Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return renderToStringWithPreboot(component, providers, prebootOptions).then((serializedCmp) => {
const selector: string = selectorResolver(component);
return html.replace(selectorRegExpFactory(selector), serializedCmp);
});
}
return renderDocumentWithPreboot(html, component, providers, prebootOptions).then((serializedCmp) => {
const selector: string = selectorResolver(component);
return html.replace(selectorRegExpFactory(selector), serializedCmp);
});
}