Does Google Talk accept HTML formatted chats?

I have sent Google Talk chats that are HTML in the way described by this question: How do you send HTML formatted messages over XMPP with Node.JS?

However, Gtalk seems to just interpret it as text. Does Gtalk accept HTML formatted messages?

To respond to the comment below: it could be either the client or the server that Google runs which is interpreting it incorrectly.


Yes, Google Talk accepts HTML formatted messages. However, as you observed, it disregards the formatted text and only shows the plain text. According to the XHTML-IM XEP, every HTML message must be accompanied by a plain text message for compatibility with clients that do not support HTML formatted messages.

When I send this example message to the Google Talk client on my Windows machine (using Psi's XML input console)...

<message to="">
  <body>Wow, I&apos;m green with envy!</body>
  <html xmlns=''>
    <body xmlns=''>
      <p style='font-size:large'>
        <em>Wow</em>, I&apos;m <span style='color:green'>green</span>
        with <strong>envy</strong>!

... I just see the text Wow, I'm green with envy!.

When I send the same message to my Psi client logged in to Google Talk, I receive...

<message from="" to="">
<body>Wow, I'm green with envy!</body>
<html xmlns="">
<body xmlns="">
          <p style="font-size:large">
            <em>Wow</em>, I'm <span style="color:green">green</span>
            with <strong>envy</strong>!

It was not stripped from the HTML, exactly as I expected (servers should not change the contents of messages). It shows as , so it looks like Psi does support formatted text.

The way to test for capabilities is using Service Discovery. If I send...

<iq to='' type='get'>
  <query xmlns=''/>

... I receive...

<iq from="" type="error" to="">
<query xmlns=""/>
<error type="cancel" code="501">
<feature-not-implemented xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>

... which means the Google Talk client does not support Service Discovery. We have to rely on the observation that HTML message text is ignored by the Google Talk client and server.

Need Your Help

Regex for splitting txt db file

regex split comma separator

I'm writing a txt database file to sql converter, and I need to split the items in the rows. The problem is that among the items there might be scripts which can hold multiple commas (which are the

Draggable jQuery on Phonegap android

jquery android cordova

I'm having some problems while implementing jQuery Draggable on Android. I've created the html code and tested it using my browser. Then I compiled it on