Skip to content
Snippets Groups Projects
Commit d0f18f4d authored by Daniel Kesselberg's avatar Daniel Kesselberg
Browse files

Add local version of escapeHTML

parent 3b82c6cc
No related branches found
No related tags found
No related merge requests found
......@@ -57,6 +57,14 @@ function highlightInput($input) {
* @param {int} userListLimit page size for result list
*/
function addSelect2 ($elements, userListLimit) {
var escapeHTML = function (text) {
return text.toString()
.split('&').join('&')
.split('<').join('&lt;')
.split('>').join('&gt;')
.split('"').join('&quot;')
.split('\'').join('&#039;');
};
if (!$elements.length) {
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment