WinJS.Utilities.insertAdjacentHTMLUnsafe function
Calls insertAdjacentHTML on the specified element in the context of MSApp.execUnsafeLocalFunction.
Caution Calling this function can lead to serious security concerns, such as HTML and script injection issues. Whenever possible, use insertAdjacentHTML.
Syntax
WinJS.Utilities.insertAdjacentHTMLUnsafe(element, position, text);
Parameters
element
Type: DOMElementThe element on which insertAdjacentHTML is to be called.
position
Type: stringThe position relative to the element at which to insert the HTML. Possible values are:
"beforebegin"
"afterbegin"
"beforeend"
"afterend"
text
Type: stringValue to be provided to insertAdjacentHTML.
Return value
This function does not return a value.
Requirements
Minimum WinJS version |
WinJS 1.0 |
Namespace |
WinJS.Utilities |