Closed (duplicate)
Project:
Quick Tabs
Version:
6.x-3.1
Component:
Tab styles
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
14 Feb 2012 at 12:51 UTC
Updated:
19 Nov 2012 at 23:58 UTC
The source of the issue is theme_quicktabs_tabs function (file quicktabs.module).
All tab title text content goes through check_plain function = all html tags are being encoded in a plain-text string for display as HTML.
To fix we need make 2 changes: add flag into quicktab array and check it on rendering. Views module filters out fields content by itself. So we can do this (file includes/quicktabs.views.inc).
Next we should tell l function not to filter text (file quicktabs.module).
| Comment | File | Size | Author |
|---|---|---|---|
| quicktabs_html_tags_title.patch | 644 bytes | nesta_ |
Comments
Comment #1
scottm316 commentedThis happened to me in the D7 module (v3.3 and v3.4). I added one line to the quicktabs.module file, safely, because I know it is only trusted users who will be entering values for these fields. I had to because it was escaping double quotes (") into """ and was very unsightly for my use.
On line 592 I added:
Hope that helps someone?
Comment #2
basvredelingYou can also do this in a theme override function:
thanks for the pointer, scottm316
Comment #3
amitnaik commentedIt was showing me the anchor tag and its all HTML so i added the line $tab['#options']['html'] = TRUE; in quicktabs.module on 592 just before $item['data'] = drupal_render($tab); and it is now perfect :) thanks scottm316
#1 is working like charm!
Comment #4
ezra-g commentedThis appears to be a duplicate of the feature and patches at #894746: Allow HTML in tab titles.