summaryrefslogtreecommitdiffstats
path: root/webapp/utils/text_formatting.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/utils/text_formatting.jsx')
-rw-r--r--webapp/utils/text_formatting.jsx12
1 files changed, 0 insertions, 12 deletions
diff --git a/webapp/utils/text_formatting.jsx b/webapp/utils/text_formatting.jsx
index 5cae81f4e..33cc3242c 100644
--- a/webapp/utils/text_formatting.jsx
+++ b/webapp/utils/text_formatting.jsx
@@ -53,11 +53,6 @@ export function formatText(text, inputOptions) {
output = replaceNewlines(output);
}
- // Add <wbr /> tags to recommend line breaking on slashes within URLs
- if (!options.singleline) {
- output = insertLongLinkWbr(output);
- }
-
return output;
}
@@ -477,10 +472,3 @@ export function replaceTokens(text, tokens) {
function replaceNewlines(text) {
return text.replace(/\n/g, ' ');
}
-
-//replace all "/" inside <a> tags to "/<wbr />"
-function insertLongLinkWbr(test) {
- return test.replace(/\//g, (match, position, string) => {
- return match + ((/a[^>]*>[^<]*$/).test(string.substr(0, position)) ? '<wbr />' : '');
- });
-}