Entry titles have escaped html tags and char entities

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
eikimart
Regular
Posts: 5
Joined: Mon Mar 28, 2011 8:57 pm

Entry titles have escaped html tags and char entities

Post by eikimart »

Sorry if this is a commonplace or trivial question, but searching this forum on the obvious strings I could think of produced no results. I'd sometimes like to add html elements like <em> to a post title (reviewing a book, for example, in which the entry title should include the book title) or character entities like &mdash;, but they get escaped out rather than treated literally as they would be in the entry body.

Is this a consequence of one of the plugins? How can I change this behavior? Thanks!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Entry titles have escaped html tags and char entities

Post by garvinhicking »

Hi!

This is more of a template issue; you can edit your entries.tpl template file and there use $entry.html_title instead of $entry.title, which will contain an unescaped title string.

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
eikimart
Regular
Posts: 5
Joined: Mon Mar 28, 2011 8:57 pm

Re: Entry titles have escaped html tags and char entities

Post by eikimart »

Splendid, thank you!
Post Reply