added method to decode html entities

This commit is contained in:
DESKTOP-T0O5CDB\DESK-555BD 2024-01-20 10:33:27 -07:00
parent 50b18a1a71
commit 3598bb6adb
2 changed files with 6 additions and 1 deletions

View File

@ -88,7 +88,7 @@
function getPlanRecordModelData() {
return {
id: @Model.Id,
dateCreated: \'@(Model.DateCreated)'
dateCreated: decodeHTMLEntities('@(Model.DateCreated)')
}
}
</script>

View File

@ -142,4 +142,9 @@ function bindWindowResize() {
$(window).resize(function () {
hideMobileNav();
});
}
function decodeHTMLEntities(text) {
return $("<textarea/>")
.html(text)
.text();
}