Tag : Strip Tags

ItSolutionStuff.com have tutorials for Strip Tags tag, here you can study articles of Strip Tags tag, Strip Tags tag posts collection, most popular and useful tutorials of Strip Tags tag, here you can find list of all relevant posts and example about Strip Tags tag, we have lists of tutorials and examples about Strip Tags tag. very simple and quick example collection of Latest Strip Tags tag.



AngularJS - how to remove html tags using filter?

Whenever you require to strip HTML tags usign Angular Filter, then this post can help you. If you are working on php then it is very easily use predefine function But in AngularJS you need to make your own filter for remove html tag from string. So, In bellow example you can see how to create and use it. <strong class="example">Create Filter:</strong> <pre class="prettyprint lang-js"> var app = angular.module('myHDApp', []); app.filter('removeHTMLTags', function() { return function(text) { return text ? String(text).replace(/<[^>]+>/gm, '') : ''; }; }); </pre> <strong class="example">U.....

By Hardik Savani | April 12, 2016 | | 59434 Viewer | Category : jQuery AngularJS
READ MORE