enlive icon indicating copy to clipboard operation
enlive copied to clipboard

OR operator in enlive

Open jule64 opened this issue 7 years ago • 0 comments

Hi, is there a way to do an OR query with enlive? Something like:

(enlive-query-all *my-parsed-html* [.type1 | .type2])

In the example below, I would be looking to get element of type1 and type2 but not type3:

Example html:

<body>
<tr class='type1'>
    ...
</tr>
<tr class='type2'>
    ... 
</tr>
<tr class='type3'>
    ... 
</tr>
</body>

Note I have a way to do this but it's not pretty..

jule64 avatar May 08 '17 09:05 jule64