You can use the preg_replace() function in PHP to convert plain text URLs into HTML hyperlinks.
To reference a method in Javadoc, you can use the {@link} tag.