How can I remove # tags from my enter string? When I enter some text in a text field, I want to remove special characters from string in ionic 2. Especially I remove # tags. Help me with some example code. I am trying with this code and getting text field value but can’t remove # tags.
Text Field:
<ion-auto-complete [options]="{ placeholder : 'Search here' }" [(ngModel)]="search_text" (keyup)="updateList($event)"></ion-auto-complete>
page.ts:
<script type="text/javascript"> updateList(ev) { this.search_text = ev.target.value; } </script>
Question and answer is powered by AnsPress.io