Missing function after merging
This commit is contained in:
parent
b0ef11932a
commit
85fc658f31
@ -3374,3 +3374,15 @@ function PMA_clearSelection() {
|
||||
if(sel.removeAllRanges) sel.removeAllRanges();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* HTML escaping
|
||||
*/
|
||||
function escapeHtml(unsafe) {
|
||||
return unsafe
|
||||
.replace(/&/g, "&")
|
||||
.replace(/</g, "<")
|
||||
.replace(/>/g, ">")
|
||||
.replace(/"/g, """)
|
||||
.replace(/'/g, "'");
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user