gentics / mesh-incubator

Project which is home for planned enhancements for Gentics Mesh
3 stars 0 forks source link

Remove HTML Field type #2

Open Jotschi opened 5 years ago

Jotschi commented 5 years ago

The html field type is superfluous. A string field can be used instead. The html field type currently only has one special logic. It sanitizes the html before storing it in Elasticsearch. Only the text will be added to the index.

We could move this logic to the elasticsearch settings of the field. Thus including a "stripHtml": true would apply the logic to the field contents.