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

@@ -71,7 +71,7 @@ namespace BTCPayServer.Controllers
try
{
_AppService.Parse(vm.PerksTemplate, vm.TargetCurrency).ToString();
vm.PerksTemplate = _AppService.SerializeTemplate(_AppService.Parse(vm.PerksTemplate, vm.TargetCurrency));
}
catch
{