Convert function metadata to HTML