# HTML content omitted message when pressing CTRL+P

**URL:** https://meta.discourse.org/t/html-content-omitted-message-when-pressing-ctrl-p/301672
**Category:** Bug
**Tags:** fixed
**Created:** [March 30, 2024, 7:46pm UTC](https://meta.discourse.org/t/html-content-omitted-message-when-pressing-ctrl-p/301672 "2024-03-30T19:46:34Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![KhoiUSA](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/khoiusa/32/373010_2.png) [@KhoiUSA](https://meta.discourse.org/u/KhoiUSA)
#### Post date: [March 30, 2024, 7:46pm UTC](https://meta.discourse.org/t/html-content-omitted-message-when-pressing-ctrl-p/301672/1 "2024-03-30T19:46:34Z")

</div>

Hello, recently I’ve noticed that when I try to print a message or post from my forum by pressing Control + P, it opens a new window like it should but the content is not visible and is instead replaced with this error: `HTML content omitted because you are logged in or using a modern mobile device.`

This doesn’t make much sense, why would it be omitted when I am logged in and trying to print? Can someone please explain the reasoning behind this? Thank you.

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

---

<div class="post-metadata">

### Author: ![Firepup650](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firepup650/32/465200_2.png) [@Firepup650](https://meta.discourse.org/u/Firepup650)
#### Post date: [March 30, 2024, 7:49pm UTC](https://meta.discourse.org/t/html-content-omitted-message-when-pressing-ctrl-p/301672/2 "2024-03-30T19:49:26Z")

</div>

Can reproduce here on meta, seems like a #Contribute > Bug.

 ![image](https://global.discourse-cdn.com/meta/original/4X/3/a/9/3a9c2f03b337d5d704f96f9babb38a879e080c1b.png)

And it does work when signed out:

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

---

<div class="post-metadata">

### Author: ![KhoiUSA](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/khoiusa/32/373010_2.png) [@KhoiUSA](https://meta.discourse.org/u/KhoiUSA)
#### Post date: [March 30, 2024, 7:51pm UTC](https://meta.discourse.org/t/html-content-omitted-message-when-pressing-ctrl-p/301672/3 "2024-03-30T19:51:49Z")

</div>

Alright, thanks for letting me know this seems to be unintended behavior. For now, a way to bypass it is to either log out and then print which wouldn’t work for private topics/messages, or you can instead click on the print button your browser has in the toolbar.

![image](https://global.discourse-cdn.com/meta/original/4X/e/f/4/ef4cabd7a9346ed8689ee9821d65add67274a00e.png)

 ![image](https://global.discourse-cdn.com/meta/original/4X/2/4/d/24dbd72ac0cdca977dd276ec13a5deb73f31ffa3.png)

---

<div class="post-metadata">

### Author: ![Firepup650](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firepup650/32/465200_2.png) [@Firepup650](https://meta.discourse.org/u/Firepup650)
#### Post date: [March 30, 2024, 7:54pm UTC](https://meta.discourse.org/t/html-content-omitted-message-when-pressing-ctrl-p/301672/4 "2024-03-30T19:54:13Z")

</div>

> [@KhoiUSA](#):
>
> you can instead click on the print button your browser has in the toolbar.

That seems to produce very unintended data:

 ![image](https://global.discourse-cdn.com/meta/original/4X/d/1/6/d16b456f124b88fc6e95584b9aab76e6299bd675.png)

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [March 30, 2024, 7:54pm UTC](https://meta.discourse.org/t/html-content-omitted-message-when-pressing-ctrl-p/301672/5 "2024-03-30T19:54:44Z")

</div>

I think there is a fix in progress  
[https://github.com/discourse/discourse/pull/26433](https://github.com/discourse/discourse/pull/26433)

---

<div class="post-metadata">

### Author: ![KhoiUSA](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/khoiusa/32/373010_2.png) [@KhoiUSA](https://meta.discourse.org/u/KhoiUSA)
#### Post date: [March 30, 2024, 7:55pm UTC](https://meta.discourse.org/t/html-content-omitted-message-when-pressing-ctrl-p/301672/6 "2024-03-30T19:55:46Z")

</div>

It unfortunately dumps all the elements from the site onto the printed page which wastes ink and paper space, you can close the sidebar and then print but it’s still inconvenient. It’s what we’ll have to make do for now until this is resolved.

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [March 30, 2024, 9:23pm UTC](https://meta.discourse.org/t/html-content-omitted-message-when-pressing-ctrl-p/301672/7 "2024-03-30T21:23:41Z")

</div>

Also worth noting, they might take a look at how to improve the print rendering 👍

> [@Is there a way to print a single post in a topic?](https://meta.discourse.org/t/is-there-a-way-to-print-a-single-post-in-a-topic/258689/10):
>
> This is a bug we noticed today already and a fix is in the works.
> 
> I shared the idea of selecting posts to print or export internally. No idea of if or when we will work on this but that something should be done is on our radar.
> 
> > [@](#):
> >
> > The print stylesheet not looking clean and attractive is a longstanding issue and I’d love to see it addressed!
> > 
> > IMNSHO, the stylesheet should be in the same font as the site, not times new roman, and include some site branding, at least the site name and logo if it exists, and the topic permalink and timestamp. Layout should be centered and efficiently use the space on the page but still have decent margins for readability.
> > 
> > Another related feature request that came up during the webinar yesterday that I found interesting was a bulk action option to select a few posts and export them. That could be incredibly valuable and is maybe a better alternative to adding a print or export button to the post menu or post admin wrench.
> > 
> > Hitting Ctrl-P would always be available to print the whole topic.

---

<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: [August 13, 2026, 5:29pm UTC](https://meta.discourse.org/t/html-content-omitted-message-when-pressing-ctrl-p/301672/9 "2026-08-13T17:29:05Z")

</div>


