Permalink
Browse files

Merge pull request #1798 from jdlrobson/1796

Fix compatibility with jQuery repeat add forms
  • Loading branch information...
mekarpeles committed Jan 1, 2019
2 parents fc63446 + 82fd7ad commit 5372b389de986611d00a11c98cd2071566d83620
Showing with 6 additions and 0 deletions.
  1. +6 −0 openlibrary/plugins/openlibrary/js/jsdef.js
@@ -135,7 +135,13 @@ function websafe(value) {

/* eslint-disable no-unused-vars */
// used in websafe function
/**
* Quote a string
* @param {string|number} text to quote
*/
function htmlquote(text) {
// This code exists for compatibility with template.js
text = String(text);
text = text.replace("&", "&"); // Must be done first!
text = text.replace("<", "&lt;");
text = text.replace(">", "&gt;");

0 comments on commit 5372b38

Please sign in to comment.