fix textarea double break bug

This commit is contained in:
Dennis Eichhorn 2023-09-19 17:16:39 +00:00
parent 91cbe9d43b
commit 39cbd5c0c9

View File

@ -13,7 +13,7 @@
name="<?= $this->renderName(); ?>"
form="<?= $this->renderForm(); ?>"
data-tpl-text="<?= $this->renderTplText(); ?>"
data-tpl-value="<?= $this->renderTplValue(); ?>"><?= \str_replace("\n", '&#10;', $this->renderPlain()); ?></textarea>
data-tpl-value="<?= $this->renderTplValue(); ?>"><?= \str_replace(["\r\n", "\n"], ['&#10;', '&#10;'], $this->renderPlain()); ?></textarea>
<input type="hidden" id="<?= $this->renderId(); ?>-parsed">
</div>