Remove Char(13) / Char(10) from textarea

We have some forms with textareas. If users copy and paste text from i.e. external text editors they paste Char(13) (not \r) into the area.

If I get the text with getItemValue(“name”) I get back the Char(13). How to replace these characters.

Unfortunately the problem cannot be reproduced locally. Could you please, provide a complete demo or a demo link, where the problem can be reconstructed.

Simply try

myinputform.setItemValue(‘fm_backnote’,‘Line 1\n\nLine 2’);pict ');

It works well for me:
http://snippet.dhtmlx.com/d34df0f37