Title: &amp; code showing in title
Last modified: October 6, 2019

---

# & code showing in title

 *  [webdev](https://wordpress.org/support/users/webdevmelb/)
 * (@webdevmelb)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/code-showing-in-title/)
 * When we add <br> to the title format so that the secondary title is displayed
   on a new line the code appears on the front end of the site:
 * %title% <br>%secondary_title%
 * I have also tried:
    %title% <p>%secondary_title%</p>
 * The results is the same with the <p> & </p> displaying on the front end of the
   site.
 * Could you please advise?
 * Thanks in advance

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [thaikolja](https://wordpress.org/support/users/thaikolja/)
 * (@thaikolja)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/code-showing-in-title/#post-12112707)
 * Hi webdev,
 * That sounds like HTML is being escaped, that means that it’s not being rendered
   but merely displayed.
 * Please have a look at the following PHP functions; they might help:
 * htmlentities();
 * htmlspecialchars();
 * htmlspecialchars_decode();
 * html_entity_decode();
 * You can find the documentation for each function on [php.net](http://php.net).
 * You then have to hook into a [filter](https://developer.wordpress.org/reference/functions/add_filter/),
   probably `get_secondary_title()`;. You can find a list of all available filter
   hooks in the [documentation](https://thaikolja.gitbooks.io/secondary-title/content/filters.html).
 *  [burges22](https://wordpress.org/support/users/burges22/)
 * (@burges22)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/code-showing-in-title/#post-12248712)
 * Appreciate your response, as I’m having this problem as well.
 * I copied/pasted your example (below) though the html wasn’t being rendered.
    
   <span style=”color:#ff0000;font-size:14px;”>%secondary_title%</span>
 * Tough situation, as I don’t know PHP, and it seems like a solution for the plugin
   might be difficult as well.
 *  [burges22](https://wordpress.org/support/users/burges22/)
 * (@burges22)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/code-showing-in-title/#post-12248777)
 * Just a follow up that I’m using Divi. It appears to be interfering somehow

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘& code showing in title’ is closed to new replies.

 * ![](https://ps.w.org/secondary-title/assets/icon.svg?rev=2520363)
 * [Secondary Title](https://wordpress.org/plugins/secondary-title/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/secondary-title/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/secondary-title/)
 * [Active Topics](https://wordpress.org/support/plugin/secondary-title/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/secondary-title/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/secondary-title/reviews/)

## Tags

 * [encode](https://wordpress.org/support/topic-tag/encode/)
 * [html](https://wordpress.org/support/topic-tag/html/)
 * [markup](https://wordpress.org/support/topic-tag/markup/)

 * 3 replies
 * 1 participant
 * Last reply from: [burges22](https://wordpress.org/support/users/burges22/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/code-showing-in-title/#post-12248777)
 * Status: not resolved