Skip to content
This repository has been archived by the owner on Jul 15, 2019. It is now read-only.

Commit

Permalink
updated the comment for inUnQuotedAttr
Browse files Browse the repository at this point in the history
  • Loading branch information
adon committed Mar 13, 2015
1 parent 67b2a0c commit c3a8bf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xss-filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ exports.inDoubleQuotedAttr = privFilters.yavd;
* @function module:xss-filters#inUnQuotedAttr
*
* @param {string} s - An untrusted user input
* @returns {string} The string s with any tab, LF, FF, space, and '>' encoded.
* @returns {string} The string s with any tab, LF, FF, space, and '>' encoded. If the first char is either ' " or `, it is also encoded. If an empty string is encountered, return a NULL character '\u0000'.
*
* @description
* <p class="warning">Warning: This is NOT designed for any onX (e.g., onclick) attributes!</p>
Expand Down

0 comments on commit c3a8bf8

Please sign in to comment.