Do you mean that you want to remove <as> and <bs> elements? If that's
the case, then...
(require '[net.cgrand.enlive-html :as h])
(h/sniptest "<a><id>a1</id></a><b><id>b1</id></b><as><id>as1</id></as><bs><id>bs1</id></bs>"
[#{:as :bs}] nil)
; => "<a><id>a1</id></a><b><id>b1</id></b>"
If what you mean is that you want to apply a transformation to all
elements excluding <as>, <bs> and their children, then...
(h/sniptest "<a><id>a1</id></a><b><id>b1</id></b><as><id>as1</id></as><bs><id>bs1</id></bs>"
[(h/but #{:as :bs})] nil)
; => "<as></as><bs></bs>"
Cheers,
xavi
> --
> You received this message because you are subscribed to the Google Groups
> "Enlive" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
enlive-clj+...@googlegroups.com.
> To post to this group, send email to
enliv...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/enlive-clj?hl=en.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>