WinJS.Utilities.setOuterHTMLUnsafe function

Sets the outerHTML property of the specified element to the specified text in the context of MSApp.execUnsafeLocalFunction.

Note Calling this function can lead to serious security concerns such as HTML and script injection issues. Whenever possible, use setOuterHTML.

Syntax

WinJS.Utilities.setOuterHTMLUnsafe(element, text);

Parameters

  • element
    Type: DOMElement

    The element on which the outerHTML property is to be set.

  • text
    Type: string

    The value to be set to the outerHTML property.

Return value

This function does not return a value.

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.Utilities