Horje
javascript remove diacritics Code Example
javascript remove diacritics
//Normalize diacritics characters from originalText
var originalText = "éàçèñ"
var result = originalText.normalize('NFD').replace(/[\u0300-\u036f]/g, "")
console.log(result)
check if word has accented or unaccented javascript
var accentArray = ["á","à","ã","â","é","è","ê","í","ì","î","õ","ó","ò","ô","ú","ù","û"]
var stringToCheck = "áeiou"

for(var i=0; i < stringToCheck.length; i++){
    for(var j=0; j < accentArray.length; j++){
        if(stringToCheck[i] === accentArray[j]){
            alert("String has accents!");
        }
    }
}




Javascript

Related
bcrypt_lib.node not found Code Example bcrypt_lib.node not found Code Example
how to get the value of dropdown in jquery Code Example how to get the value of dropdown in jquery Code Example
object json jquery foreach Code Example object json jquery foreach Code Example
javascript location href target _blank Code Example javascript location href target _blank Code Example
Drupal 8 get page node current path Code Example Drupal 8 get page node current path Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7