문제

I'm sending message containing < character.

But the message was recieved as &lt; character.

Here's my script:

var message = $msg({to: 'user@domain.com', "type": "chat"}).c('body').t('<a href="#">hshshsh</a>').up().c('active', {xmlns: "xhttp://jabber.org/protocol/chatstates"});         
Gab.connection.send(message);

The message was actually: <a href="#">hshshsh</a>

But it was recieved as: &lt;a href="#"&gt;hshshsh&lt;/a&gt;

What does make the < converted to &lt;

도움이 되었습니까?

해결책

Possible duplicate:

Strophe character encoding issue

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top