noScript

Disables scripts in a string by converting tags to comments. It is used to send clean data back to the browser.

Syntax

noScript(string)

Parameters

string

Specifies the string to be cleaned. The original string is not modified.

Returns

Returns a string that has script tags converted to comments.

Remarks

noScript converts the following tags:

Tag

Result

<SCRIPT>

<!-- PT>

</SCRIPT>

</SCR -->

<EMBED>

<!-- D>

</EMBED>

</EM -->

<OBJECT>

<!-- CT>

</OBJECT>

</OBJ -->

<IFRAME>

<!-- AME>

</IFRAME>

</IFR -->

<FRAMESET>

<!-- ESET>

</FRAMESET>

</FRAME -->