Expand all

mw.html.Raw

Wrapper object for raw HTML. Can be used with mw.html.element.

Example

const raw = new mw.html.Raw( 'Text' );
mw.html.element( 'div', { class: 'html' }, raw );