UNPKG

ngx-linkifyjs-v2

Version:

Angular wrapper for linkifyjs - library for finding links in plain text and converting them to HTML <a> tags via linkifyjs

27 lines (26 loc) 921 B
import { Link, NgxLinkifyOptions } from '../interfaces/ngx-linkifyjs.interface'; import * as i0 from "@angular/core"; export declare class NgxLinkifyjsService { constructor(); /** * Convert the passed text as a string to an appropriate url * * @param text - the string to convert * @param options - options to pass it to the linkifyjs library */ linkify(text: string, options?: NgxLinkifyOptions): string; /** * Find any links in a given text as a string * * @param text - the string to find some links */ find(text: string): Array<Link>; /** * Test if a given value is a link or an array of all links * * @param value - the value to test */ test(value: string | string[]): boolean; static ɵfac: i0.ɵɵFactoryDeclaration<NgxLinkifyjsService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<NgxLinkifyjsService>; }