AI OnAI Off
You will need to use a Property Model Mapper : https://docs.developers.optimizely.com/content-cloud/v1.5.0-content-delivery-api/docs/serialization#property-model-mappers
Using these methods you can customise the output of the JSON Payload.
An example of how i used this to get Property Lists to work can be seen here : Optimizely-ContentDelivery-Examples/BenefitItemListPropertyConvertor.cs at b5226d372abd382d2775eeb530bfbe894b5f11b8 · Netcel-Optimizely/Optimizely-ContentDelivery-Examples (github.com)
I appreciate any and all help/tips to nudge me in the right direction. We are using Episerver 11.20.
We recently installed the Content Search API for the benefit of a mobile app dev team. However, there is an issue with HTML tags getting returned by the API in property fields, when we would prefer to discard them.
I checked some documentation instructions and I decorated the class property like so:
In ClientInitialization.cs there is also this:
However, HTML tags are still returned in the API response like so:
If anybody has wrestled with the same issue, I'd appreciate any tips. Is there a way to easily customize the API response?