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

How can I send line break from variable to html template? #134

Closed
MelarcAB opened this issue Oct 2, 2021 · 1 comment
Closed

How can I send line break from variable to html template? #134

MelarcAB opened this issue Oct 2, 2021 · 1 comment

Comments

@MelarcAB
Copy link

MelarcAB commented Oct 2, 2021

I want to send a string variable with a line break, but the result shows the < br > as if it were part of the text.

I tried with \n and \r but the result is still the same

Thanks

@MelarcAB
Copy link
Author

MelarcAB commented Oct 9, 2021

I think I was doing something bad, I tried "/n" but wasn't working. Now this solution works.

Put this in the html element style attribute:
white-space: pre-wrap;

@MelarcAB MelarcAB closed this as completed Oct 9, 2021
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

1 participant