Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input Text Removes \n from the string #811

Open
vishal-shukla-viitorcloud opened this issue Oct 14, 2022 · 5 comments
Open

Input Text Removes \n from the string #811

vishal-shukla-viitorcloud opened this issue Oct 14, 2022 · 5 comments

Comments

@vishal-shukla-viitorcloud
Copy link

vishal-shukla-viitorcloud commented Oct 14, 2022

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.

@vishal-shukla-viitorcloud
Copy link
Author

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

@aredridel
Copy link
Contributor

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

@KushalSr
Copy link

KushalSr commented Oct 3, 2023

Hi
Can you tell me which file has this issue.

@HermanBide
Copy link

has this been resolve if not can i contribute

@vishal-shukla-viitorcloud
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants