Raw html character entities exposed when copy&paste messages

When I copy and paste the message in chat, html character entities should be shown as the expected form(‘<’) but displayed like ‘<’. Some customers using my company’s product reported this problem so this must be fixed but I can’t find any reason why this happen or guide to look at. One interesting thing is when I paste the message on the other text inputs, it displayed well as I expected.