Support

Home Forums Event Espresso Premium Question title stripping out some code

Question title stripping out some code

Posted: October 19, 2013 at 8:23 pm

Viewing 3 reply threads


Brittany Stone

    October 19, 2013 at 8:23 pm

    I’ve created a question and I want to link the question to a lightbox popup but when I save the question it strips out the bit of code I need to make it all work.

    I want it to be:
    [code language=”html”]Customize Your Trip [Applies to each Traveler][/code]
    but it strips out the, [code language=”html”]data-lightbox=”on”[/code] and turns it into:
    [code language=”html”]Customize Your Trip [Applies to each Traveler][/code]
    Is there any way to fix this?

    thanks

    PS. even the forum strips it out…making me very sad.

    • This topic was modified 10 years, 11 months ago by Brittany Stone.
    • This topic was modified 10 years, 11 months ago by Brittany Stone. Reason: updated code
    • This topic was modified 10 years, 11 months ago by Brittany Stone.
    • This topic was modified 10 years, 11 months ago by Brittany Stone.


    Dean

    • Support Staff

    October 21, 2013 at 12:56 am

    Hi,

    It is due to security, only basic HTML is allowed to prevent XSS (Cross Site Scripting) attacks.

    Is there any way you can generate the lightbox via a class or ID instead?


    Brittany Stone

      October 21, 2013 at 10:01 am

      Yeah, I supposed. Just more jQuery/Javascript I need to write.

      Thanks though.


      Dean

      • Support Staff

      October 22, 2013 at 12:17 am

      No problem, sorry I couldnt help further.

      Viewing 3 reply threads

      The support post ‘Question title stripping out some code’ is closed to new replies.

      Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

      Event Espresso - Staging Server