Skip to content
Snippets Groups Projects
Unverified Commit d7a5fcd8 authored by Rodrigo Nascimento's avatar Rodrigo Nascimento Committed by GitHub
Browse files

Merge pull request #10242 from RocketChat/revert-9739-url-detection

Revert "[FIX] Apostrophe-containing URL misparsed"
parents 04a6f3fd c85b05d9
No related branches found
No related tags found
No related merge requests found
......@@ -7,14 +7,7 @@ import s from 'underscore.string';
import Autolinker from 'autolinker';
function htmlDecode(input) {
const e = document.createElement('div');
e.innerHTML = input;
return e.childNodes.length === 0 ? '' : e.childNodes[0].nodeValue;
}
function AutoLinker(message) {
message.html = htmlDecode(message.html);
if (RocketChat.settings.get('AutoLinker') !== true) {
return message;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment