Merge pull request #19063 from shariquerik/do-not-escape-undefined

This commit is contained in:
Shariq Ansari 2022-11-30 20:34:34 +05:30 committed by GitHub
commit ef5c618954
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -246,6 +246,7 @@ Object.assign(frappe.utils, {
},
escape_html: function (txt) {
if (!txt) return "";
let escape_html_mapping = {
"&": "&",
"<": "&lt;",