Sign in
apache
/
camel-website
/
842d8eff0d85916eab401448e2f7348cef09fa6c
/
.
/
extensions
/
inline-styles.js
blob: 99435ed4e025058ad95411092f114cb7ab5b938f [
file
] [
log
] [
blame
]
function
removeInlineStyle
()
{
this
.
process
((
doc
,
output
)
=>
{
return
output
.
replace
(
/\s*style="[^"]+"\s*/
g
,
''
)
})
}
module
.
exports
.
register
=
(
registry
,
context
)
=>
{
registry
.
postprocessor
(
removeInlineStyle
)
}