Can this module help in filtering nodes who's content contains image tags?

Could I grab the body of the node and then php regex to check if it contains an image tag in the html and then filter on it (return true or false).

I want to create a view on already generated content..however, only the nodes where the body contains certain html tags.

Thank you.

Comments

gnassar’s picture

Status: Active » Closed (fixed)

I don't see why not. It'd be a SQL query for nodes where current node_revision content has an img tag in it, then regexping the results and returning that node set. Sounds like everything there can be done with PHP.

As for *how* to do that in PHP -- that's not a support question with the module per se. Perhaps the forums can help you with that? Or perhaps a PHP-specific site or forum.