Javascript String c2ncr( )

Description

Javascript String c2ncr( )

String.prototype.c2ncr = function( ) {
    return this .ncr2c( ).replace( /./g,
        function( $0 ) { return "&#x" + $0.charCodeAt( ).toString( 16 ).toUpperCase( ) + ";" } )
}



PreviousNext

Related