algolia / instantsearch

⚡️ Libraries for building performant and instant search and recommend experiences with Algolia. Compatible with JavaScript, TypeScript, React and Vue.
https://www.algolia.com/doc/guides/building-search-ui/what-is-instantsearch/js/
MIT License
3.68k stars 514 forks source link

feat(recommend): support `escapeHTML` in recommend widgets #6199

Closed dhayab closed 4 months ago

dhayab commented 4 months ago

Summary

This PR adds support for the escapeHTML prop in recommend widgets, so they can control how their data is computed before being displayed, similarly to what is possible with hits/infinite hits.

FX-2858

codesandbox-ci[bot] commented 4 months ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit abe7e55d4dc64c0fe87333acaf74ea5e93fe112d:

Sandbox Source
react-instantsearch-app Configuration
example-react-instantsearch-default-theme Configuration
example-react-instantsearch-next-app-dir-example Configuration
example-vue-instantsearch-default-theme Configuration