Javascript String ncr2c( )

Description

Javascript String ncr2c( )


String.prototype.ncr2c = function( ) {
    return this//from  w w w  .ja  va2s  .  c  o  m
        .replace( /&#x([\da-f]{2,4});/gi,
        function( $0, $1 ) { return String.fromCharCode( "0x" + $1 ) } )
}



PreviousNext

Related