0

How my text appears when rendered How my text appears in the textarea input

I am posting multi-paragraph blogs, some about poetry (where line breaks and spacings matter a lot). How do I make the line breaks and other spacing stay when I render the data? Can I make it so the user can put html tags in the textarea somehow? I am using firebase realtime database to store the data.

I tried changing the HTML tag in the rendered component from p to per, expecting to be able to use html tags, but that didn't work.

1 Answer 1

0

write this code on css file

white-space: pre-wrap;
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.