cancel
Showing results for
Did you mean:
See all
See all
##### Groups
Explore all groups

# How can I escape a backslash using JIRA markup?

How can I write foo\bar using JIRA markup? The backslash is an escape character and the double backslash does not appear to be rendered as a single backslash.

https://jira.atlassian.com/browse/JRA-9258describes a workaround using the HTML escape code &#092; but I don't consider this to be a resonable solution.

This widget could not be displayed.

for the shruggie enthusiasts

¯&amp;#092;\_(ツ)\_/¯

This is the exact reason I was trying to find out how to escape a backslash without a newline.  :)

This widget could not be displayed.

Use the Character Encoding Number:

&amp;#092;

OP stated

{Quote}https://jira.atlassian.com/browse/JRA-9258describes a workaround using the HTML escape code &#092; but I don't consider this to be a resonable solution{quote}

This widget could not be displayed.
Henning Tietgens Community Champion Feb 24, 2014
*foo\bar*

IMO there is no need to escape something...

{ need to be escaped afaik..otherwise a line break will appear :(

i mean like blablabla{1,2}

this will be saved as

blablabla

{1,2}

blablabla\{1,2\} will show up correctly

Henning Tietgens Community Champion Feb 24, 2014

Yes, but *foo\bar* is working perfectly.

Yes, it works. It seems that I picked the wrong example. Try foo\*.txt. This will not work.

In this case:

• one backslash escapes the * which is a special character
• two backslashes mean new line (this is unfortunate)
This widget could not be displayed.

UPDATE: Initially I picked the wrong example. As pointed out by Henning, foo\bar works fine. foo\*.txt doesn't though.

This widget could not be displayed.
Henning Tietgens Community Champion Feb 24, 2014

If it's a special text (like a directory) you could use

{noformat}
foo\*.txt
{noformat}

That's a whole different formatting. I needed to use this in a normal paragraph, something like "Copy all foo\*.txt files to the bar directory and ..."
Henning Tietgens Community Champion Feb 24, 2014

OK, than I only know the already mentioned method in JRA-9258.

There are many cases where symbols follow \ and the \ cannot be displayed.

I've wasted too much time with this trying to find workarounds that look terrible if they work at all.

### Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Community showcase
Posted Wednesday in New to Jira

### Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

175 views 2 0

### Atlassian User Groups

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

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.

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