cburschka / cadence

A strophe.js-powered XMPP web client for chatrooms.
7 stars 2 forks source link

URLs in text-only messages are no longer linked #407

Closed cburschka closed 8 years ago

cburschka commented 8 years ago

It turns out that $(...).not(...) will in fact strip out text nodes from the result set. It doesn't select "things that are not matching elements"; it selects "elements that do not match". That's good to know.

The solution, of course, is to wrap the text node in a <span> element on the XMPP end.