Disables scripts in a string by converting tags to comments. It is used to send clean data back to the browser.
noScript(string)
Specifies the string to be cleaned. The original string is not modified.
Returns a string that has script tags converted to comments.
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 --> |