diff --git a/gno.land/pkg/gnoweb/markdown/ext_forms.go b/gno.land/pkg/gnoweb/markdown/ext_forms.go index 6f7a60d2ea5..9c95d9e4da3 100644 --- a/gno.land/pkg/gnoweb/markdown/ext_forms.go +++ b/gno.land/pkg/gnoweb/markdown/ext_forms.go @@ -354,7 +354,7 @@ func (p *FormParser) parseTextarea(node *FormNode, tok html.Token) { textarea.Placeholder = p } case "value": - textarea.Value = strings.TrimSpace(attr.Val) + textarea.Value = strings.ReplaceAll(strings.TrimSpace(attr.Val), "\\n", "\n") case "rows": if _, err := fmt.Sscanf(attr.Val, "%d", &textarea.Rows); err != nil { textarea.Rows = formDefaultTextareaRows