Hi Robb,

     Sending the XHTML message as given in the example

<message>
  <body>hi!</body>
  <html xmlns='http://jabber.org/protocol/xhtml-im'>
    <body xmlns='http://www.w3.org/1999/xhtml'>
      <p style='font-weight:bold'>hi!</p>
    </body>
  </html>
</message>

just returns this very same XHTML as a plain string in pidgin, am I supposed to 
be specifying somewhere in the xmpp message sent that I intend to send a XHTML 
message, so parse it accordingly? I am sending the text from a Java client that 
is developed using smack in Java.


Warm Regards,

Naveen


Sent from Outlook<http://aka.ms/weboutlook>

________________________________
From: Eion Robb <e...@robbmob.com>
Sent: Thursday, December 14, 2017 1:04:51 AM
To: Naveen Jafer
Cc: support@pidgin.im
Subject: Re: Text Formatting

Hi Naveen,

Have a look at https://xmpp.org/extensions/xep-0071.html which is the XEP for 
sending formatted messages.  Basically, you send an XHTML message alongside the 
plaintext version in order to send <b> to make text bold.

Cheers,
Eion

On 13 December 2017 at 23:48, Naveen Jafer 
<naveenja...@outlook.com<mailto:naveenja...@outlook.com>> wrote:

Hi Everyone,

     I have a Java based XMPP client that sends out plain text messages to 
accounts that are viewed in Pidgin. What needs to be done to set the font 
formatting when viewing it in Pidgin. I would like to make it bold. **text** 
hasnt worked for me.


Warm Regards,

Naveen

Sent from Outlook<http://aka.ms/weboutlook>

_______________________________________________
Support@pidgin.im<mailto:Support@pidgin.im> mailing list
Want to unsubscribe?  Use this link:
https://pidgin.im/cgi-bin/mailman/listinfo/support

_______________________________________________
Support@pidgin.im mailing list
Want to unsubscribe?  Use this link:
https://pidgin.im/cgi-bin/mailman/listinfo/support

Reply via email to