candy-chat / candy

JavaScript-based multi-user chat client for XMPP.
http://candy-chat.github.io/candy
MIT License
1.32k stars 370 forks source link

Prevent XHTML parsing when XHTML is not enabled. #484

Closed guusdk closed 7 years ago

guusdk commented 7 years ago

When XHTML is not explicitly enabled, there's no point in parsing the XHTML content of a message.

Note that this change prevents an XHTML-parsing bug that disconnects the user from occurring when XHTML parsing is not enabled.