[\s\S]*?', 'gi'); if (html.match(tagOrComment)) { var oldHtml; do { oldHtml = html; html = html.replace(tagOrComment, ''); } while (html !== oldHtml); } return html.replace(/0) { sort += ' desc'; } else { sort += ' asc'; } } $("#sort").val(sort); return true; } function formatResultSimple (item) { var str = new String(item.text); str = sanitize(str); var n=str.indexOf('#'); if (n==0) { var str = str.substring(n+1); } return str; } function formatResultNomenclature (item) { var str = new String(item.text); str = sanitize(str); var n=str.indexOf('|'); if (n!=-1) { var code = str.substring(0,n); var libelle = str.substring(n+1); return '