You can mark content to be excluded from exports but displayed as normal on pages within Confluence by including it in a Scroll only or a Scroll only inline macro.

The only difference in how the macros work is that a line break is inserted when the Scroll only macro is used, and no line break is inserted by the Scroll only inline macro.

Want to ignore content in exports but display it in Confluence?

If you want to ignore content in exports, but still display it in Confluence, you can use the Scroll ignore or Scroll ignore inline macros.