Rendering templates with SVGs and other elements
-
Hi Mykola,
Thank you again for the great plugin that provides a clean swiperjs wrapper for WordPress Elementor!
I noticed, that when using templates as slides, the templates are not rendered correctly. Some elements, like SVGs are not displayed when using a template as a slide.
Could this be corrected in the next version?
I also did a small technical analysis, if this helps:
I chechek the code and I see that you use wp_kses() to filter only allowed HTML tags to prevent XSS.
I tried adding SVGs as allowed, but it didn’t really work, the wp_kses is pretty aggressive and kept breaking my template.
Do you think this wp_kses() is really necessary here? I’m no real expert, but XSS doesn’t seem like a real risk here, because the templates are templates that the user created, and i think get_builder_content_for_display() already returns sanitized, safe HTML.
You must be logged in to reply to this topic.