Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_isValidMarkupForElement(tagName, element) {
if (VALID_MARKUP_TAGNAMES.indexOf(tagName) === -1) {
return false;
} else if (tagName === 'b') {
// google docs add a <b style="font-weight: normal;"> that should not
// create a "b" markup
return element.style.fontWeight !== 'normal';
}
return true;
}
</b>
_isValidMarkupForElement(tagName, element) {
if (VALID_MARKUP_TAGNAMES.indexOf(tagName) === -1) {
return false;
} else if (tagName === 'b') {
// google docs add a <b style="font-weight: normal;"> that should not
// create a "b" markup
return element.style.fontWeight !== 'normal';
}
return true;
}
</b>