doofinder/doofinder-magento

convert html entities when using API

Closed this issue · 4 comments

use case:
some product described like this in the product feed (generated by our plugin):

<item>
 <id><![CDATA[8596]]></id>
 <brand><![CDATA[L&#039;Outil Parfait]]></brand>
</item>

As can be seen the "brand" value (L'Outil Parfait) is html-escaped (L&#039;Outil Parfait)

when processing this as an file feed, the html_entities filter takes care of that, but:

when using the reindex feature of our magento plugin, our plugin uses php-doofinder to access doofinder's API, and uploads everything again via API. And there's no html_entities filter in that scenario.

I guess our plugin should either doesn't produce html-escaped values, or unescaping then when reading from the magento products database, or taking care of unescaping them before submitting them via API.

@carlosescri

let know Adrien about this when it's done

https://doofinder.freshdesk.com/a/tickets/14230

Are you sure this is for Magento 1.x? we don't index by API in this module.

Of course I'm not sure. I didn't know this was only magento 1.x, is there any repo for magento 2.x ??

joder, si es perro me muerde