How to output variables from a multi-value field into html on a node tpl overrride I have overridden my node tpl page and want to output variables from a field into html. The field is called: "Features Ticked"

I understand that this php code will output the information:

&lt;?php print render($content['field_features_ticked']) ?&gt;


I see the variables are all visible with css tags around them.

Is this the only way I can outpout this information as I want to strip the html tags, how do I do that?

I want to just output row by row then use html within the tpl file.

At the moment I get all these classes:

&lt;div class="field field-name-field-features-ticked field-type-text field-label-above" style=".field-name-field-features-ticked: size"&gt;
&lt;div class="field-label"&gt;Features/Ticked:&amp;nbsp;&lt;/div&gt;
&lt;div class="field-items"&gt;
&lt;div class="field-item even"&gt;Text 1&lt;/div&gt;
&lt;div class="field-item odd"&gt;Text 2&lt;/div&gt;
&lt;div class="field-item even"&gt;Text 3&lt;/div&gt;
&lt;/div&gt;&lt;/div&gt;


What I want to do it output just:

Text 1
Text 2
Text 3


Then wrap my own html around it.. I think I can override the field.tpl.php file to remove the classes, but I don't know how to output each line of text using php in 3 separate lines of code. 

I thought i was something like:

&lt;?php print render($content['field_features_ticked'][1]) ?&gt;
&lt;?php print render($content['field_features_ticked'][2]) ?&gt;
&lt;?php print render($content['field_features_ticked'][3]) ?&gt;


But my knowledge of php kind of end there!
What you can do is to overwrite the field template.

To do that go and copy the field.tpl.php from core and rename it to field--features-ticked.tpl.php, and put it in your theme.

Then you can remove all the useless div's and classes.

EDIT : How to output the list items individually.

Let's say you have the array $content['field_features_ticked'], you can do like this.

&lt;ul&gt;
  &lt;?php foreach($content['field_features_ticked'] as $item) ?&gt;
    &lt;li&gt;&lt;?php print $item; ?&gt;&lt;/li&gt;
  &lt;?php endforeach; ?&gt;
&lt;/ul&gt;


This will create an unordered list, then loop through all the list items and print them out one by one.

NOTE: If you can't print out $item, you might do like this.

&lt;?php print $item[LANGUAGE_NONE][0]['value']; ?&gt;


Hope that is helps you out.