223 function xmlescape(s) |
223 function xmlescape(s) |
224 { |
224 { |
225 return s.replace(/&/g, "&") |
225 return s.replace(/&/g, "&") |
226 .replace(/</g, "<") |
226 .replace(/</g, "<") |
227 .replace(/>/g, ">") |
227 .replace(/>/g, ">") |
228 .replace(/\"/g, """); |
228 .replace(/\"/g, """) |
|
229 .replace(/\'/g, "'"); |
229 } |
230 } |
230 |
231 |
231 /** StanzaBuilder: Helps create and manipulate XML snippets **/ |
232 /** StanzaBuilder: Helps create and manipulate XML snippets **/ |
232 xmpp.StanzaBuilder = function (name, attr) |
233 xmpp.StanzaBuilder = function (name, attr) |
233 { |
234 { |