This example shows how to use make_clickable with a string of text to turn any URLs within into links.

<?php echo make_clickable( '<p>To find out more about this function, visit this link: https://developer.wordpress.org/reference/functions/make_clickable/</p>' ); ?>

The result will be:

<p>To find out more about this function, visit this link: <a href="https://developer.wordpress.org/reference/functions/make_clickable/" rel="nofollow">https://developer.wordpress.org/reference/functions/make_clickable/</a></p>