public function transform($content)
    {
        if (null === $content) {
            return null;
        }

        if (!is_string($content)) {
            throw new TransformationFailedException(sprintf(
                'Expected string, %s given',
                gettype($content)
            ));
        }

        //replace comments with span so that we can add a nice style to the commented section
        $content = StripTagsUtil::replaceCommentWith($content, StripTagsUtil::SPAN_REPLACEMENT);

        return $content;
    }
public function transform($content)
    {
        if (null === $content) {
            return null;
        }

        if (!is_string($content)) {
            throw new TransformationFailedException(sprintf(
                'Expected string, %s given',
                gettype($content)
            ));
        }

        //replace comments with span so that we can add a nice style to the commented section
        $content = StripTagsUtil::replaceCommentWith($content, StripTagsUtil::SPAN_REPLACEMENT);

        return $content;
    }
public function transform ( $ content ) { if ( null === $ content ) { return null ; } if ( ! is_string ( $ content ) ) { throw new TransformationFailedException ( sprintf ( 'Expected string, %s given' , gettype ( $ content ) ) ) ; } //replace comments with span so that we can add a nice style to the commented section $ content = StripTagsUtil :: replaceCommentWith ( $ content , StripTagsUtil :: SPAN_REPLACEMENT ) ; return $ content ; }
Transforms html comments to span elements

@param  string|null $content
@return string|null
@throws TransformationFailedException
Transforms html comments to span elements