Neos.Neos/Classes/Controller/Module/Management/WorkspacesController.php
protected function renderSlimmedDownContent($propertyValue)
    {
        $content = '';
        if (is_string($propertyValue)) {
            $contentSnippet = preg_replace('/<br[^>]*>/', "\n", $propertyValue);
            $contentSnippet = preg_replace('/<[^>]*>/', ' ', $contentSnippet);
            $contentSnippet = str_replace('&nbsp;', ' ', $contentSnippet);
            $content = trim(preg_replace('/ {2,}/', ' ', $contentSnippet));
        }
        return $content;
    }
protected function renderSlimmedDownContent($propertyValue)
    {
        $content = '';
        if (is_string($propertyValue)) {
            $contentSnippet = preg_replace('/<br[^>]*>/', "\n", $propertyValue);
            $contentSnippet = preg_replace('/<[^>]*>/', ' ', $contentSnippet);
            $contentSnippet = str_replace('&nbsp;', ' ', $contentSnippet);
            $content = trim(preg_replace('/ {2,}/', ' ', $contentSnippet));
        }
        return $content;
    }
protected function renderSlimmedDownContent ( $ propertyValue ) { $ content = '' ; if ( is_string ( $ propertyValue ) ) { $ contentSnippet = preg_replace ( '/<br[^>]*>/' , "\n" , $ propertyValue ) ; $ contentSnippet = preg_replace ( '/<[^>]*>/' , ' ' , $ contentSnippet ) ; $ contentSnippet = str_replace ( '&nbsp;' , ' ' , $ contentSnippet ) ; $ content = trim ( preg_replace ( '/ {2,}/' , ' ' , $ contentSnippet ) ) ; } return $ content ; }
Renders a slimmed down representation of a property of the given node. The output will be HTML, but does not
contain any markup from the original content.

Note: It's clear that this method needs to be extracted and moved to a more universal service at some point.
However, since we only implemented diff-view support for this particular controller at the moment, it stays
here for the time being. Once we start displaying diffs elsewhere, we should refactor the diff rendering part.

@param mixed $propertyValue
@return string
Renders a slimmed down representation of a property of the given node . The output will be HTML but does not contain any markup from the original content .