(enlive/sniptest "<a href=\"#\"><div>FOO</div></a> ") ;; => "<a href=\"#\"></a><div>FOO</div> "
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to enliv...@googlegroups.com.
Visit this group at https://groups.google.com/group/enlive-clj.
For more options, visit https://groups.google.com/d/optout.
(enlive/html-resource
(java.io.ByteArrayInputStream.
(.getBytes html "utf-8"))
{:parser net.cgrand.jsoup/parser} )
ChristopheIn HTML4 divs are not allowed inside a. You should switch to HTML5 using jsoup (see https://github.com/cgrand/enlive#pluggable-parsers-111)hth,
On Fri, Dec 16, 2016 at 2:41 PM, Andrew Sernyak <ndrew....@gmail.com> wrote:
Hi,I've encountered the following weird behavior.
(enlive/sniptest "<a href=\"#\"><div>FOO</div></a> ") ;; => "<a href=\"#\"></a><div>FOO</div> "
When I substitute div to a span — everything works as expected.Is there some reason for this?Andrew
--
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 https://groups.google.com/group/enlive-clj.
For more options, visit https://groups.google.com/d/optout.