What did you expect? The secret sauce is on the client.
For example, user pastes in plain text, a youtube url:
userXXX: http://youtube.com/cool-video
Then lets say user2 client reads that message, then it will parse it and check if youtube.com has a plugin enabled. If it does, it will get the thumnail and title and display it in a nicer way than just the URL. But it was initially just a url.
I think you want a HTML chat with javascript. Try making that... and discover that it is not secure to accept and run javascript from unkown users.
So plain text means securer! -- without code that might be evalled.