Skip to content

Commit

Permalink
fix: add reference
Browse files Browse the repository at this point in the history
  • Loading branch information
geekplux committed Oct 31, 2019
1 parent 0c879dd commit 84b29bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/saber-plugin-feed/lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ exports.resolveURL = (base, pathname) => {

/**
* Removes XML-invalid characters from a string.
* reference: https://www.ryadel.com/en/javascript-remove-xml-invalid-chars-characters-string-utf8-unicode-regex/
* @param {string} string - a string potentially containing XML-invalid characters, such as non-UTF8 characters, STX, EOX and so on.
* @param {boolean} removeDiscouragedChars - a string potentially containing XML-invalid characters, such as non-UTF8 characters, STX, EOX and so on.
* @return : a sanitized string without all the XML-invalid characters.
Expand Down

0 comments on commit 84b29bb

Please sign in to comment.