Closed mdamien closed 3 years ago
En vue de la migration, ptet sécuriser ce code pour gérer les dossiers tels que générés avant aussi? Genre plutôt :
alinea.replace(lien.texte || lien, '<a href="https://duckduckgo.com/?q=!ducky+' + encodeURIComponent(lien.texte_complet || lien.texte || lien) + '" target="_blank">' + (lien.texte || lien) + '</a>');
?
Bonne idée mais la PR est abandonnée pour le moment (https://github.com/regardscitoyens/the-law-factory-parser-test-cases/pull/4#issuecomment-731894290)
goes with https://github.com/regardscitoyens/the-law-factory-parser/pull/134