Skip to content

Commit

Permalink
Merge pull request #1798 from jdlrobson/1796
Browse files Browse the repository at this point in the history
Fix compatibility with jQuery repeat add forms
  • Loading branch information
mekarpeles committed Jan 1, 2019
2 parents fc63446 + 82fd7ad commit 5372b38
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions openlibrary/plugins/openlibrary/js/jsdef.js
Expand Up @@ -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;");
Expand Down

0 comments on commit 5372b38

Please sign in to comment.