jquery appendTo loses text outside html element
<p>My ajax looks like this:</p>

<pre><code>//get ajax hint count
                        $.ajax({
                            url: "actions.php",
                            type: "GET",
                            data: "get_hint_count=1",
                            cache: false,
                            success: function (data){
                                $(".hint").empty();
                                $(data).appendTo(".hint");
                            }
                        });
</code></pre>

<p>and data contains:</p>

<pre><code>?&lt;span class="tooltip"&gt;Hint is available to registered users only&lt;/span&gt;
</code></pre>

<p>But this line:</p>

<pre><code>$(data).appendTo(".hint");
</code></pre>

<p>appends only what is inside <code>.tooltip</code>. <code>?</code> disappears</p>

<p>Why?</p>
