ejabberd - Comments for "sending html messages" https://www.ejabberd.im/node/2625 en message will be sent: like https://www.ejabberd.im/node/2625#comment-51476 <p>message will be sent: like this:<br /> <div class="codeblock"><code> my $Question = new Net::Jabber::Message;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $Question-&gt;SetMessage(&nbsp; from=&gt;$fullid,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; to=&gt;$room,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; type=&gt;&quot;groupchat&quot;,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; body=&gt;&quot;test&lt;html xmlns=&#039;http://www.w3.org/1999/xhtml&#039;&gt;&lt;body&gt;&lt;span style=&#039;font-family: Arial; color: #660066; margin:0 &#039;&gt;&lt;strong&gt;test&lt;/strong&gt;&lt;/span&gt;&lt;/body&gt;&lt;/html&gt;&quot;);</code></div> </p><p>in the channel i see the same text whhich stands in the body tag.<br /> on ejabberd log i see the html tags are escaped like this<br /> &amp;lt;html xmlns=&apos;http://www.w3.org/1999/xhtml&apos;&amp;gt;</p> <p>whats wrong?<br /> how can i send html messages with net::jabber:message</p> Tue, 18 Dec 2007 00:16:54 +0000 bigman007 comment 51476 at https://www.ejabberd.im huhu https://www.ejabberd.im/node/2625#comment-50949 <div class="quote-msg"> <div class="quote-author"><em>badlop</em> wrote:</div> <p>What you ask is a Jabber client topic, not server. Tkabber and Pidgin support it, and probably many other Jabber clients do, too.</p> <p>For example, three years ago I posted this small article: <noindex><a href="http://tkabber.jabber.ru/xhtml-im" rel="nofollow" >XHTML-IM partial support in Tkabber</a></noindex></p></div> <p>no you understand me wrongly,</p> <p>its not a jabber client question.</p> <p>this perl script is a bot it asking questions in the channel, like this:</p> <p>Q ID: F1.Q537<br /> This question is worth 400 points<br /> Category: --<br /> Question: who is the best?<br /> 1st Hint:b*******</p> <p>the text comes from the perl script i would like send this message in color.<br /> not the messages which comes from the user to the server.<br /> do you understand what i mean:(</p> Mon, 24 Sep 2007 20:55:15 +0000 bigman007 comment 50949 at https://www.ejabberd.im Client topic, not server. Check example. https://www.ejabberd.im/node/2625#comment-50935 <p>What you ask is a Jabber client topic, not server. Tkabber and Pidgin support it, and probably many other Jabber clients do, too.</p> <p>For example, three years ago I posted this small article: <noindex><a href="http://tkabber.jabber.ru/xhtml-im" rel="nofollow" >XHTML-IM partial support in Tkabber</a></noindex></p> Sun, 23 Sep 2007 16:57:22 +0000 mfoss comment 50935 at https://www.ejabberd.im