Shell.Utilities.SafeMarkup.js
Applies To: Windows Azure Pack
Provides methods you can use to sanitize HTML markup to make it safe for use in scripts.
Widgets
None.
Enums
None.
Properties
None.
Methods
Name |
Description |
Returns |
Parameters |
---|---|---|---|
Shell.Utilities.SafeMarkup.create |
Creates a string of HTML elements given a string of markup. HTML encodes any existing HTML elements from the input. |
String |
data (String): String of text and markup to be converted. disableLinks (Boolean): Whether or not to allow links in the safe markup that is returned. |
Shell.Utilities.SafeMarkup.getLinkIdPrefix |
Gets the prefix used by the link markup parser to ensure the generated link ids are unique. |
String |
None. |
Shell.Utilities.SafeMarkup.getText |
Gets a string of text only that corresponds to the text and html returned by SafeMarkup.Create() function. |
String |
safeMarkup (String): Safe markup string to convert to text. |