Retrieve the text of the current comment.

Signature

get_comment_text( $comment_ID = 0, $args = array() )
comment_ID
 (int) ID of the comment for which to get the text. Default current comment.
Default: 0
args
 (array) Optional. An array of arguments. Default empty.
Default: array()

Return

(string) The comment content.

Source

function get_comment_text( $comment_ID = 0, $args = array() ) {
	$comment = get_comment( $comment_ID );

	/**
	 * Filter the text of a comment.
	 *
	 * @since 1.5.0
	 *
	 * @see Walker_Comment::comment()
	 *
	 * @param string $comment_content Text of the comment.
	 * @param object $comment         The comment object.
	 * @param array  $args            An array of arguments.
	 */
	return apply_filters( 'get_comment_text', $comment->comment_content, $comment, $args );
}
WP Trac GitHub

Link here