Text break variable
Hi,
I have a text (a cookie) that I wish to use in an API call header, but whatever I do, this code break the variable it's in or doesn't show up in my API call headers.
Here's the text / cookies:
CookieScriptConsent={"firstpage":"https://bubble.io/","action":"accept","categories":"[\"performance\",\"targeting\",\"functionality\"]","key":"3af23c70-ce02-466a-9b20-488f402ea6a8"}; _ga=GA1.2.1226421057.1628063595; _scid=0880b4ca-7f4d-4a62-9647-1e786abd5b48; ajs_anonymous_id=02865954-a32c-4e3a-8a47-a0febb8efc38; meta_live_u2main=1663494902527x968919491196176300; meta_live_u2main.sig=TFVuKw0N74OXjmhJE9HHUnICnP8; ajs_user_id=1608206332804x279788143796156030; _gcl_au=1.1.1242875711.1663494910; __stripe_mid=a7d68e94-6118-4e4e-b387-3adea638394bc4a998; showed_privacy_warning_carnets-de-voyage=true; showed_privacy_warning_weswas=true; showed_privacy_warning_ottho-app2=true;
Here's what it does :
Any hint?
Best Answer
-
Your team found it!
It appears the escaped quotation marks are causing an issue. So, I've updated the string to remove all the \" and just replace it with a " instead. If you need these to remain, you can apply the "escape" filter to the variable to convert the special characters back to their escaped variants.
Answers
-
Any update on this?
-
Hi @vnihoul77 - I'll ask the team to see if someone can provide more insights
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback