|
@@ -435,7 +435,8 @@ def index():
|
435
|
435
|
if 'content' in result and result['content']:
|
436
|
436
|
result['content'] = highlight_content(escape(result['content'][:1024]),
|
437
|
437
|
search_query.query.encode('utf-8'))
|
438
|
|
- result['title'] = highlight_content(escape(result['title']), search_query.query.encode('utf-8'))
|
|
438
|
+ result['title'] = highlight_content(escape(result['title'] or u''),
|
|
439
|
+ search_query.query.encode('utf-8'))
|
439
|
440
|
else:
|
440
|
441
|
if result.get('content'):
|
441
|
442
|
result['content'] = html_to_text(result['content']).strip()
|