A platform for community discussion. Free, open, simple.
FIX: only replaces double quotes and uses unicode (#14644)
Joffrey JAFFEUXa5eba43a6552
diff --git a/app/assets/javascripts/discourse/app/components/quote-button.js b/app/assets/javascripts/discourse/app/components/quote-button.jsindex 31c2640e452..40305a9dec4 100644--- a/app/assets/javascripts/discourse/app/components/quote-button.js+++ b/app/assets/javascripts/discourse/app/components/quote-button.js@@ -37,7 +37,9 @@ function getQuoteTitle(element) {}function fixQuotes(str) {- return str.replace(/„|“|«|»|”/g, '"').replace(/‘|’/g, "'");+ // u+201c “+ // u+201d ”+ return str.replace(/[\u201C\u201D]/g, '"');}function regexSafeStr(str) {