diff --git a/recipes/bloomberg.recipe b/recipes/bloomberg.recipe
index 8f510284cd..19eb87da8d 100644
--- a/recipes/bloomberg.recipe
+++ b/recipes/bloomberg.recipe
@@ -11,15 +11,15 @@ def get_contents(x):
if otype == 'text':
return x.get('value', '')
elif otype == 'paragraph':
- return '
' + x.get('value', '') + ''.join(map(get_contents, x.get('contents'))) + '
'
+ return '' + x.get('value', '') + ''.join(map(get_contents, x.get('content'))) + '
'
elif otype == 'heading':
- return '' + x.get('value', '') + ''.join(map(get_contents, x.get('contents'))) + '
'
+ return '' + x.get('value', '') + ''.join(map(get_contents, x.get('content'))) + '
'
elif otype == 'list':
- return '' + ''.join(map(get_contents, x.get('contents'))) + '
'
+ return '' + ''.join(map(get_contents, x.get('content'))) + '
'
elif otype == 'listItem':
- return '' + x.get('value', '') + ''.join(map(get_contents, x.get('contents'))) + ''
+ return '' + x.get('value', '') + ''.join(map(get_contents, x.get('content'))) + ''
elif otype == 'quote':
- return '' + x.get('value', '') + ''.join(map(get_contents, x.get('contents'))) + '
'
+ return '' + x.get('value', '') + ''.join(map(get_contents, x.get('content'))) + '
'
elif otype == 'media':
if x['subType'] == 'photo':
return ''.format(
@@ -40,7 +40,7 @@ def get_contents(x):
return '' + x['content'][0]['value'] + ''
return '' + x['content'][0]['value'] + ''
elif x['subType'] in ('person', 'security'):
- return x['content'][0]['value']
+ return '' + x['content'][0]['value'] + ''
return ''