I suspect that I have found the main cause of all the copy-paste
problems from the chat window (i.e. ChatConversationPanel).
Inner html that is, such as that stored in the "original_message"
attribute, *sometimes* results in bad copy data. I say "some times"
because if you retrieve full text content (programmatically via html
document instance), then it has *always* up to now resulted in a nice
clean copy. However, often when you select parts of a chat conversation
and copy that, you will get partial html copied with it - even parts of
the original_message content, I believe.
I have tried various ways of escaping html, using only double quotes (")
in html to simplify escaping, manually escaping and dumping content to
stdout. In short, I don't think we are doing anything wrong, currently,
but still copying is an issue.
When I make "original_message" attribute empty it is enough of a change
such that I cannot reproduce the copying-issues anymore. I suspect these
copy-errors occur, because of where we start/end a selection, which may
be an unfortunate point in the underlying html content.
Now, I am wondering. Would it be a problem if we strip html from the
"original_message" before storing it as such?
I don't know all protocols equally well, so I'd like your opinion(s) on