function nameToId(name) {
    return name.toLowerCase()
        .replace(/[\/\\\?\%\*\:\;\|\"\'\\<\\>\#\$\(\)\!\.\@]/g, '')
        .replace(/ /g, '_')
        .trim();
}
// Normalize a glossary entry name into a unique id
Normalize a glossary entry name into a unique id
Normalize a glossary entry name into a unique id
function nameToId(name) {
    return name.toLowerCase()
        .replace(/[\/\\\?\%\*\:\;\|\"\'\\<\\>\#\$\(\)\!\.\@]/g, '')
        .replace(/ /g, '_')
        .trim();
}
function nameToId ( name ) { return name . toLowerCase ( ) . replace ( / [\/\\\?\%\*\:\;\|\"\'\\<\\>\#\$\(\)\!\.\@] / g , '' ) . replace ( / / g , '_' ) . trim ( ) ; }
Normalize a glossary entry name into a unique id
Normalize a glossary entry name into a unique id