ad_html_qualify_links (public)
ad_html_qualify_links [ -location location ] [ -path path ] html
Defined in packages/acs-tcl/tcl/text-html-procs.tcl
Convert in the HTML text relative URLs into fully qualified URLs including the hostname. It performs the following operations: 1. prepend paths starting with a "/" by the location (protocol and host). 2. prepend paths not starting a "/" by the path, in case it was passed in. Links, which are already fully qualified are not modified.
- Switches:
- -location (optional)
- protocol and host (defaults to [ad_url])
- -path (optional)
- optional path to be prepended to paths not starting with a "/"
- Parameters:
- html (required)
- HTML text, in which substitutions should be performed.
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- ad_html_qualify_links