@minko-fe/html-transform
v0.1.17
Published
html-transform
Downloads
24
Readme
html-transform
Usage
import { applyHtmlTransforms } from '@minko-fe/html-transform'
applyHtmlTransforms(`your html`, [
{
tag: 'div',
attrs: { 'data-src': 'www.google.com' },
injectTo: 'body',
children: `console.log('hello, world!')`
}
])