-
-
Notifications
You must be signed in to change notification settings - Fork 732
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arbitrary HTML in Bootstrap Tab #1011
Comments
I think As for incorporating this into the template packs, I'm trying to work out if the change would cause a regression issue? Presumably most people have just a tab name, so may cause some tab names to be lower case... In conclusion if this is a wide enough use case then I say let's have it. Are you in a position to raise a PR (bs4 pack as well please) and we can get it reviewed more widely? Thanks! |
Good point about the regression issue. Perhaps I'm mistaken, but the examples in the docs imply that the first argument in I don't mind submitting a PR, I should have some time tomorrow in the afternoon. |
Hey, no rush, if you could submit a pr whenever you have time that would be great :+1 Take care. David |
Description:
Currently it's not possible to include, e.g., FontAwesome icons in a bootstrap3 tab. I was able to get it working by replacing
{{ link.name|capfirst }}
with{{ link.name|safe }}
intemplates/bootstrap3/layout/tab-link.html
and thenI don't know if
|safe
becomes a security issue or if people don't think this functionality is needed, but I like to put icons in my tabs so I figured I'd suggest it to the community. Currently, with the|capfirst
tag the tab will show the HTML as text instead of rendering the icon. Thoughts?The text was updated successfully, but these errors were encountered: