forked from rc/aircox
		
	fix headline
This commit is contained in:
		@ -135,7 +135,7 @@ class Page(models.Model):
 | 
				
			|||||||
    def headline(self):
 | 
					    def headline(self):
 | 
				
			||||||
        if not self.content:
 | 
					        if not self.content:
 | 
				
			||||||
            return ''
 | 
					            return ''
 | 
				
			||||||
        content = bleach.clean(self.content, strip=True)
 | 
					        content = bleach.clean(self.content, tags=[], strip=True)
 | 
				
			||||||
        headline = headline_re.search(content)
 | 
					        headline = headline_re.search(content)
 | 
				
			||||||
        return mark_safe(headline.groupdict()['headline']) if headline else ''
 | 
					        return mark_safe(headline.groupdict()['headline']) if headline else ''
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user