Question: [![enter image description here](https://i.stack.imgur.com/JCL2V.jpg)](https://i.stack.imgur.com/JCL2V.jpg)

One String value is coming from my firebase:

```java
if (task.isSuccessful()) {
    //   binding.contentMain.noData.setVisibility(View.GONE);
    for (QueryDocumentSnapshot document : Objects.requireNonNull(task.getResult()))
        postMap.putAll(document.getData());

    try {
        if (postMap != null)
            //binding.desc1.setText(Objects.requireNonNull(postMap.get(CONTENT)).toString());
            binding.desc1.setText(Html.fromHtml(Objects.requireNonNull(postMap.get(CONTENT)).toString()));
    } catch (Exception e) {
        e.printStackTrace();
    }
}

```

Now, I'll tell you what is coming inside String from Firestore, Actually I only manually written as a String field inside Firestore collection.:

```
This is the first text. \n\n This is a second text. \n This is the third text. \n\n Done. \n

```

Make sure that above line is just one String/firestore field.

In firestore, I stored the above value as a `String`, and fetching that value and showing it in Android. But it is not taking a new line. Instead, it is showing written \n along with other characters.

I tried with and without HTML. with \n and \r\n.

UPDATE: You can see below image how I stored in Firestore.
<https://drive.google.com/open?id=19yry9top_W8LREw5SEaZKWYWSlnCP1io>

Answer: 
I have a solution that I am running with. It's a separate Wordpress site with the latest posts accessed via the built-in API (<https://developer.wordpress.org/rest-api/reference/posts/>)

I will be getting all the posts in a category with: 

```
curl https://example.com/wp-json/wp/v2/posts

```

Then storing the posts in array before looping through that array to display the title and content on my dashboard with:

```
curl https://example.com/wp-json/wp/v2/posts/<id>

```

where `<id>` is from the first call.

This is clean, native and serves the exact purpose I need. The member info, while secured doesn't need to be top-secret, so we're just using the Wordpress password-protection with the same password for all posts so as long as the API calls are server-side with https, the security works too :)
Looks like you want Dynamic News Feature in your existing PHP Web Application.
And you want to build that specific feature in Wordpress.

I don't think it's a good idea to use Wordpress CMS for small features like this.
IF you already have full functional PHP Web Application then I would recommend to use same Web Application to build Dynamic News Feature which will allow users on the site to post.
I don't think that's very complex.

IF you want to get into Wordpress ecosystem then you will need to convert your PHP Web Application into Wordpress and then you can build additional functionality.

I think that's the ideal way to go. Let me know if more questions. Thanks.