The best solution is use an HTML parser in client side so you can filter out the message. If it is complex you can simply wrap your message with a tag which is not used in HTML. Check the following example,
<body>
<message>hello word</message>
now you can find for the content within the
<message></message>
tags with string manipulation techniques in c++. If you like you can use regular expressions too.