Fix POS item newline break (#2366)

* Fix POS item newline break

fixes #2365

* Update TemplateEditor.cshtml

* fix template editor with "

* apply sanitize on save
This commit is contained in:
Andrew Camilleri
2021-03-19 15:25:04 +01:00
committed by GitHub
parent 923a567822
commit 7035b71ccd
6 changed files with 48 additions and 13 deletions

View File

@@ -165,7 +165,7 @@ namespace BTCPayServer.Controllers
ModelState.AddModelError(nameof(vm.Currency), "Invalid currency");
try
{
_AppService.Parse(vm.Template, vm.Currency);
vm.Template = _AppService.SerializeTemplate(_AppService.Parse(vm.Template, vm.Currency));
}
catch
{