Wordpress can't echo brackets
<p>I am trying to make a simple plugin that will output the URL and title of a post. It should look like this:</p>

<p><a href="http://mysite.com/test-2/" rel="nofollow">http://mysite.com/test-2/</a>{Test 2}</p>

<p>However when I use the code that I posted below, it prints as follows:</p>

<p><a href="http://mysite.com/test-2/Test" rel="nofollow">http://mysite.com/test-2/Test</a> 2</p>

<p>{}</p>

<p>I can't figure out why. I've tried to escape them, separating each bracket into a string and combining them, but nothing seems to work.</p>

<p>Heres the code</p>

<pre><code>function P2S_menu(){
    echo '&lt;h1&gt;This is a Test&lt;/h1&gt;';

    $query = new WP_Query($query_string . '&amp;orderby=title&amp;order=asc&amp;posts_per_page=-1');
    while($query-&gt;have_posts()){
        $query-&gt;the_post();
        $url = the_permalink();
        $keyword = the_title();
        Print('&lt;p&gt;' . $url . '&amp;#123;' . $keyword . '&amp;#125;' . '&lt;/p&gt;&lt;br&gt;');
    }
    echo 'Done';

}
</code></pre>
