@wtasnorg/node-lib / Anchor
Defined in: src/anchor.ts:32
A simple builder for an HTML <a> element.
Both href and text are HTML-escaped in toString() output.
const link = new Anchor("https://example.com", "Example");
link.toString(); // '<a href="https://example.com">Example</a>'
new Anchor(
href?,text?):Anchor
Defined in: src/anchor.ts:36
string = "#"
string = "#"
Anchor
href:
string
Defined in: src/anchor.ts:33
text:
string
Defined in: src/anchor.ts:34
toString():
string
Defined in: src/anchor.ts:41
string