Handle content:encoded
This commit is contained in:
		
							parent
							
								
									ed51885f15
								
							
						
					
					
						commit
						833b57154f
					
				
					 1 changed files with 9 additions and 0 deletions
				
			
		
							
								
								
									
										9
									
								
								rss.go
									
										
									
									
									
								
							
							
						
						
									
										9
									
								
								rss.go
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -188,6 +188,15 @@ func (this *Feed) readRss2(doc *xmlx.Document) (err error) {
 | 
			
		|||
				i.Source.Text = src.Value
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			tl = item.SelectNodes("http://purl.org/rss/1.0/modules/content/", "*")
 | 
			
		||||
			for _, lv := range tl {
 | 
			
		||||
				if lv.Name.Local == "encoded" {
 | 
			
		||||
					i.Content = new(Content)
 | 
			
		||||
					i.Content.Text = lv.String()
 | 
			
		||||
					break
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			ch.Items = append(ch.Items, i)
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue