Apply .text to all matched elements

Fixes #326