---
name: "ns_hrefs"
section: "3aolserver"
platform: "linux"
package: "aolserver4-dev"
version: "4.5.1-18.1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/ns_hrefs"
---

# ns\_hrefs(3aolserver)

commands

## NAME

ns\_hrefs, ns\_quotehtml, ns\_striphtml - commands

## SYNOPSIS

**ns\_hrefs** *html* **ns\_quotehtml** *html* **ns\_striphtml** *html*

## DESCRIPTION

**ns\_hrefs** returns a list of all the URLs that the *html* has \<A\> links to.  There is currently no provision for normalizing any relative URL with a specified \<BASE\> URL.  Also, for a URL to be returned the HREF attribute must come before any other attributes (such as TITLE, STYLE, etc.) within the opening \<A\> tag.

**ns\_quotehtml** substitutes all instances of "\<", "\>", and "&" within *html* with their respective HTML entities ("&lt;", "&gt;", and "&amp;" respectively).  This command is useful if you want to include *html* in another page as plain text.

**ns\_striphtml** returns a new string that is *html* with all the HTML tags removed.  HTML entities are left untouched.

## SEE ALSO

nsd(1)

## KEYWORDS
