On 31/10/06, Adrian Ionut Beschea <[EMAIL PROTECTED]> wrote:

Is there a way to at least make the tags lower case ? I'm looking for an 
actionscript or php solution.

Hi Adrian

This will make tags lower case:

function toLowerCaseTags ( htmlTxt:String ) : String {
        var a:Array = htmlTxt.split( "<" );
        for (var i:Number=0 ; i<a.length ; i++) {
                a[i] = a[i].split( ">" );
                a[i][0] = a[i][0].toLowerCase();
                a[i] = a[i].join( ">" );
        }
        return a.join( "<" );
}

Jake
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to