• Resolved gubi24

    (@gubi24)


    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mykola

    (@vodafonv)

    Hi,

    Thank you for the detailed analysis and for taking the time to check the code.

    I’ll take a closer look at the wp_kses() filtering and test how it affects Elementor templates and SVG rendering inside slides.

    You may be right that the filtering is too aggressive in this case, especially since the content already comes from Elementor’s get_builder_content_for_display() output.

    I’ll investigate this further and see if it can be improved in the next version.

    Thanks again for the helpful feedback!

    Plugin Author Mykola

    (@vodafonv)

    Hi,

    Thank you again for reporting this and for the detailed analysis.

    I investigated the issue and found that the problem was indeed related to the additional HTML filtering. I’ve updated the plugin and released a new version that renders the Elementor template content directly through Elementor’s renderer.

    Could you please update to the latest version and test it on your side? In particular, I’d be interested to know whether the SVG elements and any other previously missing template content are now displayed correctly.

    Thank you for your help and feedback!

    Plugin Author Mykola

    (@vodafonv)

    I’ve fixed this in the latest version, and templates should now render correctly inside slides.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.