<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>
GitLab
</title>


<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">
<div style="">
<p dir="auto">I fail to escape the XML string in a convenient way for the <code>chat</code> application. The man page is not very helpful. So, I leave it to you (or someone accustomed to <code>chat</code>) to add the test. The data is</p>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TIMEOUT 3</span>
<span id="LC2" class="line" lang="plaintext">out: <stream:stream xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' to='example.com' version='1.0'></span>
<span id="LC3" class="line" lang="plaintext">in: <?xml version='1.0'?><stream:stream id='16633990255660214772' version='1.0' xml:lang='en' xmlns:stream='http://etherx.jabber.org/streams' from='example.com' xmlns='jabber:client'><stream:features><starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'><required/></starttls></stream:features></span>
<span id="LC4" class="line" lang="plaintext">out: <starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/></span>
<span id="LC5" class="line" lang="plaintext">in: <proceed xmlns='urn:ietf:params:xml:ns:xmpp-tls'/></span></code></pre>
<p dir="auto">(<code>in and</code>out` to make clear what should be sent/received).</p>
</div>


</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #777777;">

<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/merge_requests/911#note_141968075">view it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can
<a href="https://gitlab.com/sent_notifications/e6b6dfeb692fb0345afeb4d1f94bf73f/unsubscribe">unsubscribe</a>
from this thread or
adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Merge request","url":"https://gitlab.com/gnutls/gnutls/merge_requests/911#note_141968075"}}</script>
</p>
</div>
</body>
</html>