Missing function after merging

This commit is contained in:
Marc Delisle 2011-09-08 15:54:36 -04:00
parent b0ef11932a
commit 85fc658f31

View File

@ -3374,3 +3374,15 @@ function PMA_clearSelection() {
if(sel.removeAllRanges) sel.removeAllRanges();
}
}
/**
* HTML escaping
*/
function escapeHtml(unsafe) {
return unsafe
.replace(/&/g, "&")
.replace(/</g, "&lt;")
.replace(/>/g, "&gt;")
.replace(/"/g, "&quot;")
.replace(/'/g, "&#039;");
}