Does Cloud Firestore save strings with newline \n characters (multiline)?

Viewed 4401

Apparently Cloud Firestore console does not display newline characters inside strings. Is there a way to inspect them?

enter image description here

This string saved is actually:

enter image description here

QUESTION

Can I be sure that the newlines are there, even though they're not visible on the Firestore Console?

2 Answers

The method I have been using is to save the text in URL encoded format and decode it in your app or website. This method is good since URL encoding converts newlines, spaces and tabs to characters which are safe for transmitting over Internet.

Related