escaping text input for urls in javascript
If you need to make sure that some text entered into a text field can be sent as part of a uri, say in an ajax call as a parameter, then the built in javascript function encodeURIComponent() seems to work well.
Reference here.
Tags: javascript escaping
This entry was posted
on Thursday, October 29th, 2009 at 10:54 am and is filed under javascript.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.