ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

HTML5 data attributes are being stripped.

June 25, 2011 8:48pm

Subscribe [5]
  • #1 / Jun 25, 2011 8:48pm

    iworktoomuch

    3 posts

    Hey guys. I ran into an odd problem. This actually didn’t start happening until after I upgraded to EE 2.2. I was running EE 2.1.4 with no issues. So, I am using HTML5 data attributes like so:

    data-options="offset:{x:10, y:5}"

    The problem I am having is that EE is now stripping my bracketed text. My output now looks something like this:

    data-options="offset:"

    Is there anyway to change how EE parses variables?

    Thanks!

  • #2 / Jun 27, 2011 2:24am

    Marcus Neto

    1005 posts

    Have you tried the Protect JavaScript hidden configuration variable?

    Optionally breaking up the line like
    {
    script tags here
    }

    usually is enough to tell EE not to parse what is between the {} tags

  • #3 / Jun 27, 2011 4:05am

    narration

    773 posts

    iworktoomuch, you say it was working in the earlier version, so this post may not be about your issue.

    However, it’s good to be aware about, since it can cause the same problem.

    Regards,
    Clive

  • #4 / Jun 27, 2011 11:36am

    iworktoomuch

    3 posts

    Thank you for the feedback everyone. I will try these.

    Thanks!

  • #5 / Jun 28, 2011 4:02pm

    Sue Crocker

    26054 posts

    Sounds good, let us know what you find out. We’ll be here.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases