Hi, again i can’t get approval of my theme. Now one of the issues envato team complained is wp_kses(). They say “wp_kses is an expensive function, so it should only be run when data is saved, not displayed. To strip out all HTML tags, you can use wp_strip_all_tags()”
So, i don’t want to strip all the tags. I use this function to cut off all tags except some i want user to be able to use.
button, form, input, span, div, a, em, i, strong, b, ul, ol, li, img, h1, h2, h3, h4, h5, h6
So when i render something i use that function, in a cople of places, not everywhere. Where header elements are, i want user be able to enter HTML (especially em, strong etc), because creation of all options for any case it’s nightmare and nightmare to use such a continious options list.
What i have to do? Thanks in advance.