MODX Community

SimpleSearch Extract placeholder not respecting striptags

Summary

I’ve got an issue where using :striptags is not stripping the html from the output of the extract placeholder in SimpleSearch

Step to reproduce

  <div class="extract"><p>[[+extract:striptags]]</p></div>

Here is an excerpt my search tpl, I verified it the correct one by removing this line and the entire extract was removed.

https://mbros.com/ Visit this site, search “Mudroom” and scroll down a bit, you’ll see an image embedded in the extract area.

Observed behavior

HTML tags appear to still be output

Expected behavior

All HTML should be removed.

Environment

MODX 2.7.2 PHP7, L Nginx MP stack, etc.