taoqf / node-html-parser

A very fast HTML parser, generating a simplified DOM, with basic element query support.
MIT License
1.11k stars 106 forks source link

:contains() Case insensitive #276

Open servefast-cto opened 4 months ago

servefast-cto commented 4 months ago

Is it possible to specify case insensitivity for :contains() query

Example

This example selects text but i would also like to select Text as well is this supported since i know :contains() is not supported by css even

taoqf commented 4 months ago

Yes, you can use :icontains instead.

servefast-cto commented 4 months ago

@taoqf thank you good to know :)