i have this text:
this is a sample
text
Apparently, after "sample" there is a Line feed character (ENTER). How can i encode JUST those characters and not the whole string. When i use encodeURI the whole string gets encoded What i want to do is to get a string like "this is a sample%0Atext" Thanks