# Issue with setting multiline text in textarea / Blink.jl

**URL:** <https://discourse.julialang.org/t/issue-with-setting-multiline-text-in-textarea-blink-jl/127512>\
**Category:** General Usage\
**Tags:** html, javascript, blink\
**Created:** [March 30, 2025, 1:04pm UTC](https://discourse.julialang.org/t/issue-with-setting-multiline-text-in-textarea-blink-jl/127512 "2025-03-30T13:04:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eben60](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/eben60/32/13475_2.png) [@Eben60](https://discourse.julialang.org/u/Eben60)\
**Post date:** [March 30, 2025, 1:04pm UTC](https://discourse.julialang.org/t/issue-with-setting-multiline-text-in-textarea-blink-jl/127512/1 "2025-03-30T13:04:03Z")

</div>

In my package PackageMaker.jl , I’m implementing saving/recalling configurations.

The package uses Blink.jl to create GUI. Some of the inputs are intended to take an array of strings, and implemented as multiline `textarea`.

On recalling a config, the inputs values are set via JS. However if saved value contained multiple lines (i.e. a String with `"\n"` in it), something goes wrong and the corresponding `textarea` stays unchanged. If there is just a single line - it will be set as expected.

I’ve tried every reasonable tip from Internet, did it with pure JS and with JQuery - all with the same effect: as soon as there is `\n` there, the field is not set.

Opening the same HTML file with Mozilla, and runnung in the console e.g.

```julia
jQuery("#GeneralOptions_proj_pkg").val("Pk1\nPk2")

```

sets the corresponding `textarea` contents as expected.

Any ideas?
