insert one more linefeed url-encoded character
_global.escape2 = function(str:String) {
var str2 = str.split('%0D');
var str3 = str2.join('%0D%0A');
return str3;
};
put one more linefeed character right after normal carraige return chracter.
You ought to use this function with eacape function
additional code
_global.replaceString = function(separator:String, replacer:String, string:String){
//임의 문자열 string 에서 separator을 찾아내여 replacer로 변경한 후 변경된 문자열을 반환
//String(replaceString("[amp;]", "&", _root.paperLoader.title));
var temp0 = string.split(separator);
var temp1= temp0.join(replacer);
return temp1;
}
_global.insertLB = function(str:String) {
var temp1 = escape(str);
var temp2 = temp1.split('%0D');
var temp3 = temp2.join('%0D%0A');
//trace (temp3);
return temp3;
};
_global.removeLB = function (str:String){
var temp1 = escape(str);
var temp2 = temp1.split('%0D%0A');
var temp3 = temp2.join('%0D');
//trace (temp3);
return unescape(temp3);
}
About this entry
You’re currently reading “insert one more linefeed url-encoded character,” an entry on multiplicité
- Published:
- Monday, September 19th, 2005 at 3:28 pm
- This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.0 Korea.
- Author:
- vizualizer
- Category:
- techne
No comments
Jump to comment form | comments rss