I have problems parsing a json API search result snippet. The searchmatch span breaks the link.
Add this plain URL as one-liner text to Category:John Foxx:
http://www.discogs.com/artist/John+Foxx
Now query.search for "John Foxx" category titles and parse the results (including the snippet).
The returned HTML is destroyed because span.searchmatch wraps "John" inside the URL path (I guess):
Output:
<a rel="nofollow" class="external free" href="http://www.discogs.com/artist/">http://www.discogs.com/artist/</a><span class="searchmatch">John</span>+Foxx
API call:
api.php?action=query&list=search&format=json&srsearch=John%20Foxx&srnamespace=14&srprop=snippet&srredirects=&srlimit=50 >>> function(data){ ... build myWrappedResultItems $.ajax({ type: 'POST', url: '...api.php', dataType: 'json', data: { format: 'json', action: 'parse', text: myWrappedResultItems } }) .done(function(res) { ... res.parse.text['*'] }); }
MW 1.22.12