Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to remove em dash from Content by Label macro output?

I'm looking to remove the em dash that precedes the page excerpt in my content by label macro output.

I've added CSS to

  • remove the icon
  • put the page title and excerpt on separate lines

When I look at the page in HTML I see that em dash is enclosed with the excerpt content. How does it get there and how can I remove it?

Goal appearance is:

Page title

Excerpt text below.

1 answer

0 votes

Hi @Kim Wallace 

The '-' character is part of the Content by Label Macro output to separate the title and the page excerpt.

You might be able to remove the dash by using the following JavaScript code within an HTML macro in the same page.

<script type="text/javascript">
AJS.$('ul.content-by-label.conf-macro.output-block > li > div.details > span.smalltext').each(function(){
if($( this ).text().startsWith('— ')){
var currentText = $( this ).html();
$( this ).html(currentText.substring(2));


I hope  that helps.

Kind regards,
Thiago Masutti

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

Miss the Confluence demos at Team 21? Watch them here!

Phew, Atlassian Team 2021 blew by. With dozens of demos and a handful of keynotes, you may have missed some of the awesome Confluence Cloud sessions. Don't' worry, you can watch them all here or on Y...

374 views 2 6
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you