How to use the autolinker.HtmlTag function in autolinker

To help you get started, we’ve selected a few autolinker examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github gregjacobs / Autolinker.js / tests-integration / test-require.spec.ts View on Github external
it( `AnchorTagBuilder should be a top-level named export of 'autolinker'`, () => {
		expect( Autolinker.HtmlTag ).toEqual( jasmine.any( Function ) );  // constructor function
		expect( Autolinker.HtmlTag.name ).toBe( 'HtmlTag' );  // function name
		expect( Autolinker.HtmlTag.prototype.getTagName ).toEqual( jasmine.any( Function ) );
	} );
github gregjacobs / Autolinker.js / tests-integration / test-require.spec.ts View on Github external
it( `AnchorTagBuilder should be a top-level named export of 'autolinker'`, () => {
		expect( Autolinker.HtmlTag ).toEqual( jasmine.any( Function ) );  // constructor function
		expect( Autolinker.HtmlTag.name ).toBe( 'HtmlTag' );  // function name
		expect( Autolinker.HtmlTag.prototype.getTagName ).toEqual( jasmine.any( Function ) );
	} );