mirror of
https://github.com/hargata/lubelog.git
synced 2025-12-10 18:36:38 -06:00
Merge pull request #129 from hargata/Hargata/to.do
escape datecreated string
This commit is contained in:
commit
8d79804872
@ -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();
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user