Sending special characters in XMPP

So I’m trying to send a string like this <message to="me"><body>\<foobar\>`

How can I do this?