Override a function defined in wp-includes/comment-template.php
If you look at the end of the function get_cancel_comment_reply_link( $text=”” ) in the file wp-includes/comment-template.php, you see the filter cancel_comment_reply_link. return apply_filters( ‘cancel_comment_reply_link’, $formatted_link, $link, $text ); It may work.