Drupal 7 node titles - symbols convert to html entities in Zen sub-theme

vfranklyn's picture

Hi there. I have a problem with D7. My node titles are converting some symbols to html entities. IE: '&' is converted to '&' etc. This happens on all content types and regardless of whether I'm using automatic node titles. Here's a few examples:

http://dev-ppld-sandbox.gotpantheon.com/databases/library-information-sc...

http://dev-ppld-sandbox.gotpantheon.com/press-releases/new-facility-will...

If I switch the theme to the admin one (Seven), the problem goes away, so it must be a problem with our theme, which is a Zen sub-theme. Any ideas from the experts?

Any help would be greatly appreciated.

Comments

Update: I switched themes to

vfranklyn's picture

Update: I switched themes to the admin theme and it now works properly. Any theming ideas?

The creator of this post is

CatherineOmega's picture

The creator of this post is improperly posting a patch, but it may be helpful for you: https://www.drupal.org/node/1836632

You'll want to add "htmlspecialchars_decode()" to your theme's tpl file in the same way they've adeed it to the before and after parts. Does that make sense? If not, take a look at the code that prints your node title in your theme and compare it to how the admin theme does it.

UPDATE: I figured out what

vfranklyn's picture

UPDATE: I figured out what the problem was. I had Automatic Title Generation enabled and I was using the wrong token for the Title. The proper token is [node:field-rw-url:title]. Thank you, CatherineOmega. I will keep your fix in mind as well.

Denver / Boulder Colorado (DBUG)

Group categories

Group events

Add to calendar

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: