|
Lines 31-36
var HtmlCharsToEscape = {
Link Here
|
| 31 |
"&": "&", |
31 |
"&": "&", |
| 32 |
"<": "<", |
32 |
"<": "<", |
| 33 |
">": ">", |
33 |
">": ">", |
|
|
34 |
"'": ''', |
| 35 |
'"': '"' |
| 34 |
}; |
36 |
}; |
| 35 |
String.prototype.escapeHtml = function () { |
37 |
String.prototype.escapeHtml = function () { |
| 36 |
return this.replace(/[&<>]/g, function (c) { |
38 |
return this.replace(/[&<>]/g, function (c) { |
|
Lines 204-212
$(document).ready(function () {
Link Here
|
| 204 |
}); |
206 |
}); |
| 205 |
|
207 |
|
| 206 |
const previous_patron = { |
208 |
const previous_patron = { |
| 207 |
borrowernumber: $("#hiddenborrowernumber").val(), |
209 |
borrowernumber: escape_str($("#hiddenborrowernumber").val()), |
| 208 |
name: $("#hiddenborrowername").val(), |
210 |
name: escape_str($("#hiddenborrowername").val()), |
| 209 |
card: $("#hiddenborrowercard").val(), |
211 |
card: escape_str($("#hiddenborrowercard").val()) |
| 210 |
}; |
212 |
}; |
| 211 |
|
213 |
|
| 212 |
previous_patrons.unshift(previous_patron); |
214 |
previous_patrons.unshift(previous_patron); |
| 213 |
- |
|
|