Merge pull request #129 from hargata/Hargata/to.do

escape datecreated string
This commit is contained in:
Hargata Softworks
2024-01-20 10:34:03 -07:00
committed by GitHub
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();
}