encodeURIComponent() with velocity

Joseph 's Avatar

Joseph

23 Jan, 2015 09:06 PM

How can I encode a url with velocity? I have some situations where the data needed in a uri has whitespace. How can I overcome this?

  1. 1 Posted by Ryan Griffith on 26 Jan, 2015 01:46 PM

    Ryan Griffith's Avatar

    Hi Joseph,

    You should be able to use the $_EscapeTool.url() method to encode URI values with the appropriate escape sequence.

    Please let me know if you have any questions.

    Thanks!

  2. Ryan Griffith closed this discussion on 29 Jan, 2015 03:04 PM.

Discussions are closed to public comments.
If you need help with Cascade CMS please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

 

26 Aug, 2016 01:19 PM
25 Aug, 2016 03:02 PM
25 Aug, 2016 12:50 PM
24 Aug, 2016 08:43 PM
24 Aug, 2016 07:20 PM
21 Aug, 2016 01:20 PM