Using commas and slahes in text overlay
I'm, using the node.js sdk to transform image and create text overlays. I have user generated content in form of text, which I have to put on an image as an overlay.
Those texts could contain special characters like commas and slashes. I tried everything but no matter what I do they end up on the final image with %2F or %2C.
I tried everything:
- I justed pased the text in plain to the url method of the sdk (like stated in the docs)
- I tried to quote the text before passing it to the method
- I tried to double quote the text before passing it to the method
Any idea what could be the problem?
Thank you for reaching out.
To use special characters like commas and slashes, you need to double-escape them. Click here to see how documentation is on it.
Here is an example as well:
Please let me know if you have any other questions or queries.
Post is closed for comments.