Streaming live at 10am (PST)

Exported custom attributes change

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.


1 Like

@callmevlad @danro Please take a look :)

1 Like

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']);
1 Like