Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In recreating a drupal 7 site I have come across an issue where in views the same simply date field in a table suddenly now is surrounded by properties and data types. can anyone explain what I am doing wrong
<td class="views-field views-field-field-rotadate Joe-Thompson vols">
<strong>Wed 3 Aug</strong>
</td>
now looks like
<td class="views-field views-field-field-rotadate webmaster vols">
<strong>
<span class="date-display-single" property="dc:date" datatype="xsd:dateTime" content="2016-10-25T00:00:00+01:00">Tue 25 Oct</span>
</strong>
</td>
Comments
Comment #2
robgreeniowaI too discovered this weirdness when I needed the day (i.e. '2') and month (i.e. '9') and year (i.e. '2017) as replacement tokens for a query string in Drupal Views. To get rid of all the extra span info, simply go to the field in Views, and under "Rewrite results", click the checkbox for "Strip HTML tags". That did the trick for me. Good luck!
Comment #3
DamienMcKenna