Skip to main content
  Wednesday, May 06 2015
  2 Replies
  2.6K Visits
  Subscribe
One example is the ability to show an icon, like those from font-awesome. When I include the code in the source editor, it is immediately stripped on return to regular edit view or on save of the module/article. I need to use this to put in code sometimes to get around shortcomings of editors that don't allow such insertion in GUI form.

Is there a set of rules as to what HTML tags to allow and what ones not to? Is there something I can modify in the code to allow the <i> at least?
S
8 years ago
Nevermind. I figured this out - my problem, not yours.

For those who have a similar issue, you have to have "some" content inside the tag or it will get stripped. So, if you have (hope this code shows up)

<i class="fa fa-phone"></i>


it will get stripped. Instead use this:

<i class="fa fa-phone">&nbsp</i>


Then it won't get stripped and will work as expected. Hope this helps someone else.
S
8 years ago
ok - well that didn't work at all...

in short, put the nbsp character inside the tag. That would be ampersand nbsp semicolon.
  • Page :
  • 1
There are no replies made for this post yet.