nstcl  >  Documentation  >  nstcl-html  >  ns_hrefs

Tcl Powered!

ns_hrefs

NAME

ns_hrefs — Returns a list of URLs from within HTML anchor tags

SYNOPSIS

package require nstcl-html ?1.0?
package require nstcl ?1.0?

::nstcl::ns_hrefs html

DESCRIPTION

ns_hrefs returns a list of all URLs contained inside of <A> tags in the specified html.

If the struct, htmlparse, and uri packages from tcllib are available, and html contains a <base> tag, any relative URLs will be converted from relative to canonical form.

KEYWORDS

html, nstcl