Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
toIncDom(value) {
if (isObject(value) && isString(value.content) && (value.contentKind === 'HTML')) {
value = value.content;
}
if (isString(value)) {
value = HTML2IncDom.buildFn(value);
}
return value;
}
}