@TAGATTR — Parses an HTML tag and returns the value of the specified attribute.

Syntax:
%@TAGATTR[name,tag]

namethe name of the attribute to search for
tagthe HTML tag to parse; it should be enclosed in < and > signs

This is a specialized function, unlikely to be useful to most people. (It’s something I needed for one specific batch file, and this plugin was a convenient place to put it.) The HTML tag should be enclosed in < and > signs; either the normal ASCII characters or the SafeChar versions will work.

The value in the HTML tag be quoted with either single- or double quotes; the quotes will be stripped out. If the specified attribute is not found, @TAGATTR returns an empty string.

The string returned will not be SafeChar-ed.


echo %@tagattr[href,<a href="https://www.google.com/" target="_blank">]