def METHOD_NAME(self, version):
    alsoProvides(self.request, IVersionViewLayer)
    feed = SearchFeed(api.portal.get())
    adapter = queryMultiAdapter((version, feed), IFeedItem)
    content = adapter.render_content_core().strip()
    noLongerProvides(self.request, IVersionViewLayer)
    if not content:
        # try old fashioned way... bah!
        content = version.restrictedTraverse(version.defaultView())()
        dom = fromstring(content)
        return ''.join([tostring(el) for el in dom.cssselect('#content-core > *')])
    else:
        dom = fromstring(content)
        return ''.join([tostring(el) for el in dom.cssselect('[data-panel] > *')])