0.0.5 • Published 5 years ago
@diy-kitchens/pipes v0.0.5
Pipes
Below is a list of pipes in this package and a demonstration of their usage
name | sample markup | result |
---|---|---|
currency | 29.9 | currency | £29.90 |
mergeUnique | [['a', 'b'], ['b', 'c']] | mergeUnique | a,b,c |
objectKeys | { name: 'Jeff', age: 25 } | objectKeys | name,age |
safe | <a [href]='"https://google.com" | safe'>https://google.com</a> | https://google.com |
sanitizeHtml | <div [innerHtml]="'<script>alert(\'injection attack\')</script> user content' | sanitizeHtml"></div> | user content |
sentenceCase | 'this is sentence case' | sentenceCase | This is sentence case |
titleCase | 'this is title case' | titleCase | This Is Title Case |