added method to decode html entities
This commit is contained in:
@@ -88,7 +88,7 @@
|
||||
function getPlanRecordModelData() {
|
||||
return {
|
||||
id: @Model.Id,
|
||||
dateCreated: \'@(Model.DateCreated)'
|
||||
dateCreated: decodeHTMLEntities('@(Model.DateCreated)')
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -142,4 +142,9 @@ function bindWindowResize() {
|
||||
$(window).resize(function () {
|
||||
hideMobileNav();
|
||||
});
|
||||
}
|
||||
function decodeHTMLEntities(text) {
|
||||
return $("<textarea/>")
|
||||
.html(text)
|
||||
.text();
|
||||
}
|
||||
Reference in New Issue
Block a user