We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 051608b + 51e124b commit c9936f4Copy full SHA for c9936f4
src/common/helper.js
@@ -1981,6 +1981,8 @@ function removeTextFormatting (text) {
1981
text = _.replace(text, /[,"'?/\\]/g, ' ')
1982
// Replace two or more newlines
1983
text = _.replace(text, /\n/g, ' ')
1984
+ // Replace non-breaking space with regular space
1985
+ text = _.replace(text, /\xA0/g, ' ')
1986
// replace all whitespace characters with single space
1987
text = _.replace(text, /\s\s+/g, ' ')
1988
return text
0 commit comments