You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to add more features for attribute sanitization, or to allow a custom sanitizer to be passed in? Right now it looks like the only supported option is sanitize: true which performs full HTML sanitization on all attributes:
Specifically, I'm interested in the ability to whitelist the & character since it is getting indexed as & in Algolia when included in a string attribute.
Steps To Reproduce
Add sanitize: true to the list of options passed to algoliasearch. Create an attribute that has an ampersand:
attribute :some_attribute do
'This & That'
end
Index the record and see it shows up as This & That
The text was updated successfully, but these errors were encountered:
Description
Would it be possible to add more features for attribute sanitization, or to allow a custom sanitizer to be passed in? Right now it looks like the only supported option is
sanitize: true
which performs full HTML sanitization on all attributes:algoliasearch-rails/lib/algoliasearch-rails.rb
Line 185 in 00c65ea
Specifically, I'm interested in the ability to whitelist the
&
character since it is getting indexed as&
in Algolia when included in a string attribute.Steps To Reproduce
Add
sanitize: true
to the list of options passed toalgoliasearch
. Create an attribute that has an ampersand:Index the record and see it shows up as
This & That
The text was updated successfully, but these errors were encountered: