bloblang method to URL encode string #1615
-
|
Dear Developers, Dear Community, I am looking for a way to URL encode a string via bloblang. However, I could only find Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Hey @gramian. I think the name of |
Beta Was this translation helpful? Give feedback.
Hey @gramian. I think the name of
escape_url_querymight be a bit misleading, but the docs do state that it "Escapes a string so that it can be safely placed within a URL query". Under the hood, it simply callsurl.QueryEscape, which, as far as I can tell, performs the percent encoding that you're looking for. I tested some examples from Mozilla'sencodeURI()docs quickly viabenthos blobl serverand got the same results.