Over a million developers have joined DZone.

Javascript Normalize - Removes Accents And Others Invalid Chars.

·
// this snippet is useful for making urls slugs, or comparing user inputs to a normalized string.


    var normalize = (function() {
        var from = "ÃÀÁÄÂÈÉËÊÌÍÏÎÒÓÖÔÙÚÜÛãàáäâèéëêìíïîòóöôùúüûÑñÇç", 
            to   = "AAAAAEEEEIIIIOOOOUUUUaaaaaeeeeiiiioooouuuunncc",
            mapping = {};
        
        for(var i=0; i
Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}