I am trying to make a post similar to:

So I get the code from this site source code and pasted it in the "text/html tab" of new post in my wordpress site,

The problem I am facing is that the chat code in the textarea is automatically adding br/ tags in the facebook chat code. And if I manually remove the space between the lines of code then its now working..demo:

Need help solving this....thanks in advance