Improved regex in strip_tags

Thanks Pablo Recio for the report. Refs #19237.