mirror of
				https://github.com/balkian/go5ears.git
				synced 2025-11-04 01:28:20 +00:00 
			
		
		
		
	Changed html to text to avoid escaped characters
This commit is contained in:
		@@ -42,9 +42,9 @@ app.get('/search', function(req, resp){
 | 
				
			|||||||
            $(resultsol).find('li').each(function(i,elem){
 | 
					            $(resultsol).find('li').each(function(i,elem){
 | 
				
			||||||
                var a=$(elem).find('a');
 | 
					                var a=$(elem).find('a');
 | 
				
			||||||
                var id=a.attr('href').split('/')[1];
 | 
					                var id=a.attr('href').split('/')[1];
 | 
				
			||||||
                var title = a.find('span.songtitleinfo').html();
 | 
					                var title = a.find('span.songtitleinfo').text();
 | 
				
			||||||
                var group = a.find('span.groupnameinfo').html();
 | 
					                var group = a.find('span.groupnameinfo').text();
 | 
				
			||||||
                var quality = $(elem).find('p.comment').html().split('|')[0];
 | 
					                var quality = $(elem).find('p.comment').text().split('|')[0];
 | 
				
			||||||
                if(typeof title != 'undefined' && typeof group != 'undefined' ){
 | 
					                if(typeof title != 'undefined' && typeof group != 'undefined' ){
 | 
				
			||||||
                    results.push({id:id,title:title,group:group,quality:quality})
 | 
					                    results.push({id:id,title:title,group:group,quality:quality})
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user