Ajax request to Wikipedia API issue
<p>I want to make a simple request to the Wikipedia API:</p>

<pre><code>$.ajax({
    url: 'http://en.wikipedia.org/w/api.php',
    data: {
        action: "query",
        generator: "search",
        gsrnamespace: 0,
        gsrsearch: "te",
        gsrlimit: 30,
        prop: "info|extracts",
        inprop: "url",
        format: "json"
    },
    dataType: 'jsonp',
    success: processResult
});
</code></pre>

<p>The outcome should look like this -> <a href="https://en.wikipedia.org/w/api.php?action=query&amp;generator=search&amp;gsrnamespace=0&amp;gsrsearch=te&amp;gsrlimit=10&amp;prop=info|extracts&amp;inprop=url" rel="nofollow">https://en.wikipedia.org/w/api.php?action=query&amp;generator=search&amp;gsrnamespace=0&amp;gsrsearch=te&amp;gsrlimit=10&amp;prop=info|extracts&amp;inprop=url</a></p>

<p>But this doesn't work properly from my ajax code.(there must be "extract" key).</p>

<p>I think the problem is in simbol "|" (look at ajax):</p>

<pre><code>        prop:"info|extracts",
</code></pre>

<p>How to fix?</p>