Trello get cards API corrupts links in the text

37 views Asked by At

I made a script for extracting info from Trello using Tello API and python (requests library). After some time, Trello Added more text and links formatting options (like inline, card, emmbed, etc.) and I started updating my script to parse that type of links as well. But now I can see what Trello's Get Cards API call returns some links with additional single or double \ sign. Usually in Google Docs ID part (14s\_pSDXAmRsljfjpiKLZTWOjWNYFdO0d instead of 14s_pSDXAmRsljfjpiKLZTWOjWNYFdO0d ). Why does it happened, who's fault is it and what to do? Is it safe enough to blindly remove \ signs from the link? (even Stack Overflow automatically removed it from my text lol, until I put it to the code section)

1

There are 1 answers

0
Владислав Стадник On BEST ANSWER

Okay, I will answer on myown question. So, it seems after Trello updated it's markdown, some symbols can be used for markdow syntax and in the text as well. So to avoid sudden mixup between regular text and syntax, trello escaping that symbols. For example, "_" will be replaced with "_" so Trello could understand it's not the beginning or ending of the italic text. That's my assumption, but it seems like the only one logic explanation.