"Somewhere, something incredible is waiting to be known" - Carl Sagan

blogs.she7ata.com, mohammed shehata personal showcase and blogs website.

she7ata.com » blogs » articles » Trim String NewLines and Breaks CarriageReturn and LineFeed Function new

Trim String NewLines and Breaks CarriageReturn and LineFeed Function new

published at:8/15/2008, Tutorials, Flash & AS,
published by: she7ata

i wrote this function early on the 2005, flash mx i guess, this function remove double Cr And Lf on strings and return a clean
 text

function trimCrLfs(xString){
//Trim double Crr/lnFeeds -18-1-2005 (C) mShehata xStr=new String(xString);
xBuffer = new String();
for(i=0;i<=xStr.length;i++)
   if (!(xStr.charCodeAt(i)==13))xBuffer=xBuffer+xStr.charAt(i); return(xBuffer); }

good luck ISA :-)


  categories

 » recent posts

 � recent replies

 » friends & links


COMMENT(S)

ADD COMMENT

name:*
email:*
website:
comment:
captcha:
she7ata.com, owned and managed by mohammed shehata
(C) 2000~2009
QUICK LINKS BLACKHAND, ELWARSHA, BLOGS, PORTFOLIOS
she7ata'sBlogs v1.0, beta, not just another wordpress or joomla site!