# How to escape ampersand in environment variable

**URL:** https://travis-ci.community/t/how-to-escape-ampersand-in-environment-variable/13415
**Category:** Travis CI Discussions & Feedback
**Created:** [November 15, 2022, 8:50am UTC](https://travis-ci.community/t/how-to-escape-ampersand-in-environment-variable/13415 "2022-11-15T08:50:06Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![vladinko0](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/vladinko0/32/8344_2.png) [@vladinko0](https://travis-ci.community/u/vladinko0)
#### Post date: [November 15, 2022, 8:50am UTC](https://travis-ci.community/t/how-to-escape-ampersand-in-environment-variable/13415/1 "2022-11-15T08:50:06Z")

</div>

I have this value of environment variable for travis:

```auto
WGaSDdq1&kL0Ua3eB

```

But travis complains:

> We were unable to parse one of your secure environment variables. Please make sure to escape special characters such as ’ ’ (white space) and $ (dollar symbol) with \ (backslash) . For example, thi$isanexample would be typed as thi$isanexample. See [Encryption keys - Travis CI](https://docs.travis-ci.com/user/encryption-keys).

I was trying to escape this value this ways:

```auto
WGaSDdq1\&kL0Ua3eB 
WGaSDdq1^&kL0Ua3eB 
WGaSDdq1&amp;kL0Ua3eB

```

But result is either wrong result value or value is unable to parse for Travis. Can someone please help me?
