1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 SVG Bbcode?

Discussion in 'XenForo Questions and Support' started by dethfire, Oct 14, 2015.

  1. dethfire

    dethfire Well-Known Member

    Is it possible to allow SVG code using BBCode or will it simply display the SVG code as text in the post?
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  3. dethfire

    dethfire Well-Known Member

    I'm interested in the XML embed
     
  4. Mike

    Mike XenForo Developer Staff Member

    In general, that's going to be very dangerous as to do it would effectively allow arbitrary HTML, which is a big security issue. (SVG can also embed JavaScript, which is another issue.) In general, I don't think the inline XML approach is necessarily ideal; doing it would likely also require custom PHP for rendering as we would normally escape it. I'm not sure what your needs are, but image embedding should work out of the box (though we don't support it in the image proxy, due to the JS embed issue).
     

Share This Page