If we're inserting dynamic input, use .text()

Things can get funky if the search string includes html.