I’m storing a text which has line breaks on firebase and upon recieveing the text I’m unable to add line breaks despite there being “\n”. Then i added a label and “\n” didnt work but <br>
did work so i tried replacing “\n” in the text to <br>
but it the block doesnt detect “\n” in the text despite the output clearly showing there is.
In order to get help please show your blocks
I tried doing this it works well when initially there are <br>
.
The result the procedure gives is: Atharva\nPawar\n17yo
when you storing multy line data, replace “enter” with this sign ||
example:
Hi john
How are you
nice to meet you today
Becomes : Hi john||How are you||nice to meet you today
then in “Bio” you can replace the sign || to be
and don’t forget to check the multyline textbox
The textbox doesnt recognise <br>
or \n
Replace || become \n
I do not have such a problem in firebase . Multiline is checked and data returns with no problem
Forget about firebase, even this isnt working
nor with \n
Could this be a problem?
The text that I receive is this way:
“Atharva\nPawar” the " " included
that is why i use a procedure to remove them
Update:
I used ||## as a replacement to \n
but my fear is that this field is for a bio of a profile and what if any person wants to use this specific combination of characters? I can restrict them from using but it wont look good i suppose.
There isnt a property for HTML Format for a textbox
This works for me
Make sure to leave a space before \n
.
If you are not using hardcoded variables like the example above , so you could replace all \n
with {space}\n
, {space}
= one blank space.