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

Why to keep "\n" in html string ? #257

Open
Flip437 opened this issue Sep 14, 2022 · 1 comment
Open

Why to keep "\n" in html string ? #257

Flip437 opened this issue Sep 14, 2022 · 1 comment

Comments

@Flip437
Copy link

Flip437 commented Sep 14, 2022

Why do you keep "\n" char in html string after
. This can create issues when using the string containing "\n" with a FormData e.g. (https://stackoverflow.com/questions/69835705/formdata-textarea-puts-r-carriage-return-when-sent-with-post)

@itekhi
Copy link

itekhi commented May 18, 2023

+1!
I had an issue with this recently...
Draft editor had only 1 blank line between texts. After export, this one line looked like this ...</p>\n<p><br></p>\n<p>.... So many new lines...
I had html to text converter which converted this to 5 blank lines 🤣, instead of one... I think <p> tags were also treated as new lines as in css.

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

2 participants