# Is there a way to hide some text in a post?

**URL:** https://meta.discourse.org/t/is-there-a-way-to-hide-some-text-in-a-post/281057
**Category:** Support
**Created:** [October 4, 2023, 4:42pm UTC](https://meta.discourse.org/t/is-there-a-way-to-hide-some-text-in-a-post/281057 "2023-10-04T16:42:58Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![fbpbdmin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fbpbdmin/32/300893_2.png) [@fbpbdmin](https://meta.discourse.org/u/fbpbdmin)
#### Post date: [October 4, 2023, 4:42pm UTC](https://meta.discourse.org/t/is-there-a-way-to-hide-some-text-in-a-post/281057/1 "2023-10-04T16:42:58Z")

</div>

possible to hide some part of a post ? only the author can see it when check the edit history.

have bbcode plug-in enabled, tried bbcode [hide] text [/hide], not supported.  
other workaround ?

thanks

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [October 4, 2023, 4:52pm UTC](https://meta.discourse.org/t/is-there-a-way-to-hide-some-text-in-a-post/281057/2 "2023-10-04T16:52:12Z")

</div>

Not sure about hiding part of a post but depending on your usecase scenario, there is the whispers function. Also this plugin.

> [@Discourse Private Replies](https://meta.discourse.org/t/discourse-private-replies/146712):
>
> Github: [GitHub - communiteq/discourse-private-replies](https://github.com/communiteq/discourse-private-replies) This plugin hides topic replies for everyone but the topic starter and the post author. Use cases This can be used for for instance homework assignments where the teacher opens a topic and posts an assignment, and all students make a post with their answers. When everyone has submitted their work, the teacher can open up the answers so the students will be able to discuss them. A second use case can be an auction where something is offered…

This sort of question has been asked:

> [@Is there an option to hide part of the post from users which aren't moderators/admins? Also – any good RPG plugins out there?](https://meta.discourse.org/t/is-there-an-option-to-hide-part-of-the-post-from-users-which-arent-moderators-admins-also-any-good-rpg-plugins-out-there/219178):
>
> Is there a plugin which resembles [HIDE] BBCode from the old days of phpBB? I know that a lot of people used it for hiding post content from anonymous users or users who didn’t reply in the given topic, but I want a different feature - to be able to hide post partially and not only from guests, but from non-moderators too. Is it possible yet? The reason is – I’m running an RPG adventure through Discourse and I want for my players to be able to hide parts of their character sheets from the eyes …

> [@Way to make part of the post visible to author and staff only?](https://meta.discourse.org/t/way-to-make-part-of-the-post-visible-to-author-and-staff-only/120539/):
>
> I’m my forums exclusievly for roleplaying purposes. We have our character sheets partially hidden from other players’ eyes, so there’s always a surprise when it comes to characters’ abilities, which imposes safer, more realistic gameplay. On an old phpBB 3.2 we used [HIDE] BBCode, which allowed to hide part of the post so it was visible only for staff members and author of the post. Does Discourse allow it in any way, possibly via plugins? If it’s impossible then maybe you could tell me how …

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [October 4, 2023, 5:02pm UTC](https://meta.discourse.org/t/is-there-a-way-to-hide-some-text-in-a-post/281057/3 "2023-10-04T17:02:03Z")

</div>

You can use comments.

```plaintext
[comment]: <> (This is a comment, it will not be included)

```

As html comment

```plaintext
<!---
your comment goes here
and here
-->

```

I checked and the HTML comment is not rendered in `cooked`.

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [October 4, 2023, 5:05pm UTC](https://meta.discourse.org/t/is-there-a-way-to-hide-some-text-in-a-post/281057/4 "2023-10-04T17:05:24Z")

</div>

oh cool. I never thought of using HTML comments but of course that makes sense with edit history. 🙂 now I’m going to use that, thank Jay!

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [October 4, 2023, 5:17pm UTC](https://meta.discourse.org/t/is-there-a-way-to-hide-some-text-in-a-post/281057/5 "2023-10-04T17:17:47Z")

</div>

Do I miss something? An HTML comment is displayed in the raw view of the edit history.

 ![image](https://global.discourse-cdn.com/meta/original/4X/c/a/5/ca5eda5e552fcbd7ff699f44d205b60f4eb75e05.png)

So it doesn’t cover the “only the author can see it”, right?

The history is visible either by staff only, or by everyone:

Setting `edit history visible to public`: “Allow everyone to see previous versions of an edited post. When disabled, only staff members can view.”

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [October 4, 2023, 5:19pm UTC](https://meta.discourse.org/t/is-there-a-way-to-hide-some-text-in-a-post/281057/6 "2023-10-04T17:19:37Z")

</div>

> [@Lilly](#):
>
> I never thought of using HTML comments

Right!? Me neither, but for kicks, I decided to

> **[Markdown Comments](https://letmegooglethat.com/?q=markdown+comments&l=1)**
>
> For those who think it's easier to annoy you than to Google 'Markdown comments' themselves.

And to my surprise, it was that easy.

> [@Canapin](#):
>
> Do I miss something? An HTML comment is displayed in the raw view of the edit history.

Oops. True. And I bet you can also retrieve `raw` in a number of ways. In fact, even with a plugin, it would be quite difficult to have text that existed in `raw`, but was not visible to everyone.

---

<div class="post-metadata">

### Author: ![fbpbdmin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fbpbdmin/32/300893_2.png) [@fbpbdmin](https://meta.discourse.org/u/fbpbdmin)
#### Post date: [October 4, 2023, 5:25pm UTC](https://meta.discourse.org/t/is-there-a-way-to-hide-some-text-in-a-post/281057/7 "2023-10-04T17:25:12Z")

</div>

thanks @pfaffman  
I worked around using `[aname=...][/aname]`🙂

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [October 4, 2023, 5:25pm UTC](https://meta.discourse.org/t/is-there-a-way-to-hide-some-text-in-a-post/281057/8 "2023-10-04T17:25:29Z")

</div>

Ok that was fun until Canapin ruined it with the obvious 😆 I’m going to go drink more coffee and hide myself from posts.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [October 4, 2023, 5:26pm UTC](https://meta.discourse.org/t/is-there-a-way-to-hide-some-text-in-a-post/281057/9 "2023-10-04T17:26:44Z")

</div>

As @Canapin pointed out, it’ll still be visible in edit history or by retrieving the raw post.

If it’s good enough that it be hidden, you’re OK, but if you want it private, you’re out of luck.

---

<div class="post-metadata">

### Author: ![fbpbdmin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fbpbdmin/32/300893_2.png) [@fbpbdmin](https://meta.discourse.org/u/fbpbdmin)
#### Post date: [October 4, 2023, 5:27pm UTC](https://meta.discourse.org/t/is-there-a-way-to-hide-some-text-in-a-post/281057/10 "2023-10-04T17:27:36Z")

</div>

that is true, that is good enough for my use case.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [November 3, 2023, 5:28pm UTC](https://meta.discourse.org/t/is-there-a-way-to-hide-some-text-in-a-post/281057/11 "2023-11-03T17:28:37Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
