Angular pipe to find links in text input and turn them into html links
npm install angular-linkyAngular pipe to find links in text input and turn them into html links. It was called the same "linky" in ngSanitize module of AngularJs (first). Since Angular does not have such pipe built in therefore this repo was created.
This is just a wrapper for Autolinker.js so all issues and feature requests related to autolinker should go to their issues!
AoT ready.
npm install --save angular-linkyImport LinkyModule or manually declare LinkyPipe in your app module.
``ts
import { LinkyModule } from 'angular-linky';
@NgModule({
imports: [
LinkyModule
]
})
class YourAppModule {}
`
Use linky pipe with [innerHTML] (or outerHTML, depends on you) binding to get HTML correctly rendered:
You can pass any autolinker option as a second pipe argument. For ex.:
`