Streaming live at 10am (PST)

Exported custom attributes change


#1

When I’m exporting my project Webflow replaces the character “<” with “& l t ;” on my links custom attributes. Is this a known problem? (note that the space between the characters are intentional by me)

This is my attribute:

Name: onClick
Value: gaq.push(['trackEvent', 'Download (<?=$os?>)', 'V2']);

and the exported code is:
Value: gaq.push(['trackEvent', 'Download (& l t ;?=$os?>)', 'V2']);

Sure, it's the same character but in html but it makes my custom attribute to fail and it doesn't replace all other characters.

Cheers


#2

@callmevlad @danro Please take a look :)


#3

Thanks for the heads up @danielbruce & @bartekkustra . We will take a look.

Alternatively, I would recommend using jQuery to assign these click events. Especially if your links have other actions associated with them. For example:

$('.modal-link').click(function() {
  gaq.push(['trackEvent', 'Download (<?=$os?>)', 'V2']);
});

#4