Hi WP Monkey,
Unfortunately, the fix didn’t make it into the latest core update (4.0). As it sits now, there is no solid work around. A few plugins claim to add the ability to prevent unfiltered HTML from being stripped, but I still have yet to get one of them working properly.
From the few emails I had with another users of the plugin, we were able to come up with a solid work around.
Instead of using the ‘data-icon’ parameter on the icon itself, you can create an element and use an appropriate class name to assign the icon. For example, the following will work and will prevent the unfiltered HTML from being stripped out:
<i class="wp-svg-icon-set1-home"></i>
That will create a home icon, using the provided class name instead of the alternate methods mentioned in the plugin. You’ll want to make sure that the contents of the element are NOT empty tho, because sometimes the content editor will strip out elements that are empty.
To be safe, add a space inside of the element :
<i class="wp-svg-icon-set1-home"> </i>
(notice the space)
I am hoping that in the coming days I can loop back around and update the documentation within the plugin, as well as on the site to let users know that this is a valid and working method for generating icons and to prevent this issue. I also need to specify the class name of each icon as they are clicked, so the user knows what classname to use.
Evan