I have set up a view and everything works fine except when I add a "date" field it is wrapped in a which breaks the rss reader I am testing it on. Is there anyway to strip this from the output?

Comments

jdblank’s picture

sorry this should say "it is wrapped in a <span>..."

andrewbenkard’s picture

Bump. A solution to this would reeeeeally help me out too.

Anyone?

andrewbenkard’s picture

Disclosure: I am not a developer.
My kludge to suppress this (for Date elements) is to go into the date.theme file and alter

function theme_date_display_single($date, $timezone = NULL) {
  return '<span class="date-display-single">'. $date . $timezone .'</span>';
}

to be:

function theme_date_display_single($date, $timezone = NULL) {
  return $date . $timezone;
}

Inelegant, but it works so far.

rbrownell’s picture

Select "Strip HTML tags" in the options for the field in the view. It worked for me.

maciej.zgadzaj’s picture

Status: Active » Closed (works as designed)

As mentioned by nfd, check "Strip HTML tags".

Also, please read the first draft of module documentation for what it can and can't do (and how).

Feel free to re-open this issue if needed.