Page 1 of 1

Entry titles have escaped html tags and char entities

Posted: Tue May 10, 2011 8:39 pm
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!

Re: Entry titles have escaped html tags and char entities

Posted: Tue May 10, 2011 9:39 pm
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

Re: Entry titles have escaped html tags and char entities

Posted: Tue May 10, 2011 10:09 pm
by eikimart
Splendid, thank you!