Strip HTML tags from Field Collections in Services Views I'm trying to strip the HTML tags from a JSON response I generated using Services Views, but I'm not having any luck so far.
I have a content type with a Field Collections field in it that is outputting HTML tags no matter what I do.
I've tried the following:


Check Strip HTML tags in the field settings in the view
Set customize field HTML to 'None'
Set Customize field and label wrapper HTML to 'None'
All combinations of the above
Making sure to turn of all 'Provide default field wrapper elements' options


Am I missing anything? My output still looks like this in my json:

"Animals": [
            "&lt;div class=\"entity entity-field-collection-item field-collection-item-field-product-animals clearfix\"&gt;\n  &lt;div class=\"content\"&gt;\n    &lt;div class=\"field field-name-field-product-animal field-type-taxonomy-term-reference field-label-above\"&gt;&lt;div class=\"field-label\"&gt;Animal:&amp;nbsp;&lt;/div&gt;&lt;div class=\"field-items\"&gt;&lt;div class=\"field-item even\"&gt;Big&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=\"field field-name-field-product-withdrawal-time field-type-text field-label-above\"&gt;&lt;div class=\"field-label\"&gt;Withdrawal time:&amp;nbsp;&lt;/div&gt;&lt;div class=\"field-items\"&gt;&lt;div class=\"field-item even\"&gt;25 dg&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;  &lt;/div&gt;\n&lt;/div&gt;\n",
            "&lt;div class=\"entity entity-field-collection-item field-collection-item-field-product-animals clearfix\"&gt;\n  &lt;div class=\"content\"&gt;\n    &lt;div class=\"field field-name-field-product-animal field-type-taxonomy-term-reference field-label-above\"&gt;&lt;div class=\"field-label\"&gt;Animal:&amp;nbsp;&lt;/div&gt;&lt;div class=\"field-items\"&gt;&lt;div class=\"field-item even\"&gt;Rund vlees&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=\"field field-name-field-product-withdrawal-time field-type-text field-label-above\"&gt;&lt;div class=\"field-label\"&gt;Withdrawal time:&amp;nbsp;&lt;/div&gt;&lt;div class=\"field-items\"&gt;&lt;div class=\"field-item even\"&gt;21 dg&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;  &lt;/div&gt;\n&lt;/div&gt;\n",
            "&lt;div class=\"entity entity-field-collection-item field-collection-item-field-product-animals clearfix\"&gt;\n  &lt;div class=\"content\"&gt;\n    &lt;div class=\"field field-name-field-product-animal field-type-taxonomy-term-reference field-label-above\"&gt;&lt;div class=\"field-label\"&gt;Animal:&amp;nbsp;&lt;/div&gt;&lt;div class=\"field-items\"&gt;&lt;div class=\"field-item even\"&gt;Pluimvee ei&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=\"field field-name-field-product-withdrawal-time field-type-text field-label-above\"&gt;&lt;div class=\"field-label\"&gt;Withdrawal time:&amp;nbsp;&lt;/div&gt;&lt;div class=\"field-items\"&gt;&lt;div class=\"field-item even\"&gt;6 dg&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;  &lt;/div&gt;\n&lt;/div&gt;\n"


Any help on this is greatly appreciated.
You have to tell use what you have done so far.

To strip tags use strip_tags php code. This function takes two parameters:

string strip_tags ( string $str , [string $allowable_tags ] )


The first argument is the string and the optional second parameter is to specify tags which should not be stripped. For example

&lt;?php
    echo strip_tags("Hello &lt;b&gt;&lt;i&gt;world!&lt;/i&gt;&lt;/b&gt;","&lt;b&gt;");
?&gt;


Will output this


  Hello world! 


Not


  Hello world!




I guess you have to use views_datasource module to generate JSON. I have already used this module and no default HTML tag were inserted by the View.

Did you try preprocess functions to strip the tags from the view?