Title: HTML-Code in Tab-title
Last modified: January 23, 2018

---

# HTML-Code in Tab-title

 *  Resolved [modulbuero](https://wordpress.org/support/users/antwortzeit/)
 * (@antwortzeit)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/html-code-in-tab-title/)
 * Hey guys,
 * i need to place HTML-code in the titles of all my tabs, the code being a FontAwesome-
   icon and a span wrapping a second line of text. Your plugin filters like this:
 * `$instance['items'][ $key ]['title'] = sanitize_text_field( $item['title'] );`
 * Is there any chance you could implement a filter on this, so i could turn this
   off without hacking the plugin?
 * Thanks,
    Christian

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

 *  Plugin Contributor [Gregor Capuder](https://wordpress.org/support/users/capuderg/)
 * (@capuderg)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/html-code-in-tab-title/#post-9898445)
 * Hi Christian,
 * did you try to remove the `sanitize_text_field` function on that line? Did everything
   work OK, once you did that?
 * You can also create a pull request with the code changes needed to support custom
   code like icons on our github repository: [https://github.com/proteusthemes/tabs-widget-for-page-builder](https://github.com/proteusthemes/tabs-widget-for-page-builder)
 * If the code will be OK we will merge it to tne plugin and update the plugin…
 * Take care!
 *  Thread Starter [modulbuero](https://wordpress.org/support/users/antwortzeit/)
 * (@antwortzeit)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/html-code-in-tab-title/#post-9900531)
 * Hey,
 * yeah, i did and it did work. Thanks for the invitation to do a pull request, 
   i just went over to github and dit exactly that.
 * Keep up the good work!
    Christian
 *  Plugin Contributor [Gregor Capuder](https://wordpress.org/support/users/capuderg/)
 * (@capuderg)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/html-code-in-tab-title/#post-9901355)
 * Hi Christian,
 * thanks for creating the PR. I’ve left a comment on it. It should be merged to
   master with your next commit.
 * Thanks for the PR again!
    Take care!
 *  Thread Starter [modulbuero](https://wordpress.org/support/users/antwortzeit/)
 * (@antwortzeit)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/html-code-in-tab-title/#post-9901361)
 * Done! Thanks a lot for the kindness.
 *  Plugin Contributor [Gregor Capuder](https://wordpress.org/support/users/capuderg/)
 * (@capuderg)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/html-code-in-tab-title/#post-9901421)
 * Wow, that was fast 🙂
 * Merged!
 * This will be available in the next plugin update, probably in 1-2 weeks.
 * Thanks and have a nice day!
 *  Thread Starter [modulbuero](https://wordpress.org/support/users/antwortzeit/)
 * (@antwortzeit)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/html-code-in-tab-title/#post-9901444)
 * 🙂 And so was your merge. Cheers, man.
    Same to you!
 *  [Andrei V.](https://wordpress.org/support/users/alonepixel/)
 * (@alonepixel)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/html-code-in-tab-title/#post-10119369)
 * Hi [@capuderg](https://wordpress.org/support/users/capuderg/),
    I have the latest
   version of the plugin but still can’t write HTML code in the tab title, what 
   should I do?
 * Thank you!
    -  This reply was modified 8 years, 2 months ago by [Andrei V.](https://wordpress.org/support/users/alonepixel/).
 *  Plugin Contributor [Gregor Capuder](https://wordpress.org/support/users/capuderg/)
 * (@capuderg)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/html-code-in-tab-title/#post-10127122)
 * Hi [@alonepixel](https://wordpress.org/support/users/alonepixel/),
 * the plugin was not yet updated with this feature. Until it will be, you can change
   the plugin code with this changes:
    [https://github.com/proteusthemes/tabs-widget-for-page-builder/pull/9/files](https://github.com/proteusthemes/tabs-widget-for-page-builder/pull/9/files)
 * Since this change will be available in the next plugin update as well…
 * And you can then use the filter (in your theme/child theme) to disable the sanitisation:
 *     ```
       add_filter( 'pt-tabs/sanitize_tab_title', '__return_false' );
       ```
   
 * Take care!
    -  This reply was modified 8 years, 2 months ago by [Gregor Capuder](https://wordpress.org/support/users/capuderg/).

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

The topic ‘HTML-Code in Tab-title’ is closed to new replies.

 * ![](https://ps.w.org/tabs-widget-for-page-builder/assets/icon-256x256.png?rev
   =1694316)
 * [Tabs Widget for Page Builder](https://wordpress.org/plugins/tabs-widget-for-page-builder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tabs-widget-for-page-builder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tabs-widget-for-page-builder/)
 * [Active Topics](https://wordpress.org/support/plugin/tabs-widget-for-page-builder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tabs-widget-for-page-builder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tabs-widget-for-page-builder/reviews/)

## Tags

 * [filter](https://wordpress.org/support/topic-tag/filter/)
 * [sanitize](https://wordpress.org/support/topic-tag/sanitize/)
 * [title](https://wordpress.org/support/topic-tag/title/)

 * 8 replies
 * 3 participants
 * Last reply from: [Gregor Capuder](https://wordpress.org/support/users/capuderg/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/html-code-in-tab-title/#post-10127122)
 * Status: resolved