dustjs icon indicating copy to clipboard operation
dustjs copied to clipboard

Input Text Removes \n from the string

Open vishal-shukla-viitorcloud opened this issue 2 years ago • 5 comments

Hi,

We are using dust.js

What we are doing?

  • We want to show string as it is coming from JSON into input box let say "This is the \n test box \n testing"

Problem

When we write <input type="text" value="This is the \n test box \n testing" /> then

  • Text box come with same string including "\n"

When we use dynamic value from object {name: "This is the \n test box \n testing"} and use like <input type="text" value="{name}" /> then

  • it shows like "This is the test box testing" which does not have "\n" and that is the problem where our actual data changes and reflect as problem at many places.

Please help asap.

@aredridel @caolan @zzen @kmiyashiro Any one can help on this?

@vishal-shukla-viitorcloud Please don't ping random people just to get attention.

aredridel avatar Oct 27 '22 15:10 aredridel

Hi Can you tell me which file has this issue.

KushalSr avatar Oct 03 '23 20:10 KushalSr

has this been resolve if not can i contribute

HermanBide avatar Feb 24 '24 00:02 HermanBide

has this been resolve if not can i contribute

Thanks for reaching out, Its not resolved yet. You can support here. Currently it has less priority now but yes we need solution.