How can avoid to HTML code will be visualized in a search?

I`m working in the Confluence 4.0 and the HTML plugin, to put an HTML code in the content of a website what I`m doing now.
But, when I looking for the title in the page, which I m developed, it shows like a result of the search, the HTML code like content of the page.

I`m attaching you a picture, and you will see.
Thank you very much!


2 answers

This widget could not be displayed.

You can't, easily. You're poking in raw html which is plain strings as far as confluence is concerned, so it's indexing and displaying what you've put in.

If you want it formatted differently in the searches then you've got three basic paths you can take

  1. Enter it in Confluence format (i.e. not html)
  2. Hack the html macro so it drops the html and stores it as confluence format
  3. Hack the search so that it knows to display html rendered as text
This widget could not be displayed.

If you can, use jquery to add the html when the page is displayed. Then, just the representation of the page is changed, not what is stored, and searched.

Depends exactly what you are using {html} for really.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

155 views 2 4
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you