mirror of
https://github.com/hargata/lubelog.git
synced 2025-12-10 00:46:08 -06:00
added method to decode html entities
This commit is contained in:
parent
50b18a1a71
commit
3598bb6adb
@ -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