Can't you do this with pure javascript? Do an indexOf to find the location of <div class="wp_social_whatever"> and find the matching closing </div> tag...Then string.slice() the ends off at each of the indexes..
On Wednesday, July 9, 2014 5:24:41 AM UTC-4, Kim Dan wrote: > > I understand the mantra of AngularJS is not to manipulate the DOM, and i > fully agree with this but in my specific case I'm pulling some HTML from a > service and I would like to clean it up and remove from unnecessary tags > before displaying it. This is being done only at one point in the app so I > didn't want to include another library just to do this sort of cleaning up. > I'm trying to keep the app light, so I was hoping Angular could perform the > operation without having to include another library. Thoughts? > > --Kim > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
