# String.slice() and newlines

**URL:** <https://forum.kirupa.com/t/string-slice-and-newlines/91419>\
**Category:** Uncategorized\
**Created:** [October 3, 2003, 12:58pm UTC](https://forum.kirupa.com/t/string-slice-and-newlines/91419 "2003-10-03T12:58:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lews](https://avatars.discourse-cdn.com/v4/letter/l/f0a364/32.png) [@Lews](https://forum.kirupa.com/u/Lews)\
**Post date:** [October 3, 2003, 12:58pm UTC](https://forum.kirupa.com/t/string-slice-and-newlines/91419/1 "2003-10-03T12:58:09Z")

</div>

Slice seems to disregard any \<br\> and/or newlines.

IE, when I slice() a string from a certain position, and transfer the sliced string to a new dyn. text box, all enters etc get lost; all text appears on one line.

Is there any workaround for this?
