original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Transforms html comments to span elements
  
  @param  string|null $content
  @return string|null
  @throws TransformationFailedException
docstring_tokens: Transforms html comments to span elements