Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
injectInlineStyles($, styles) {
// inline styles using Juice and clean up extra whitespace
const opts = {
applyAttributesTableElements: true,
applyHeightAttributes: true,
applyWidthAttributes: true
}
juice.inlineDocument($, styles, opts)
return $
}