Some of my feeds are coming in with HTML characters encoded into the title as &#039 rather then ' . If I were to create a function to search and replace where &#039 would be converted to ' prior to node save, where in the code would I want to add this?

Thanks,

-C

Comments

Cromian created an issue. See original summary.

MegaChriz’s picture

Status: Active » Fixed

In the D7 version of Feeds, the recommended way would be to use the Feeds Tamper module for that, but that module hasn't been ported to D8 yet.

The easiest solution would probably be to implement hook_node_presave() in a custom module.
For documentation about this hook, see https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!entity.api...

For a similar question (for people who find this issue after a search), see #2706057: Allow targets to provide a default value..

Cromian’s picture

Ah! Good call about usinghook_node_presave() Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.