Views field rewrite onClick attribute not rendering In a D7 instance, in Views under "Rewrite the output of this field" I have this in the textarea:

&lt;a href="[field_downloads]" title="[field_downloads_1-description]" onClick="recordOutboundLink(this, 'Downloads', '[field_downloads_1-description]'); return false;"&gt;[field_downloads_1-description]&lt;/a&gt;


All data is displaying except for the onClick attribute. Any ideas why?
Views rewrite uses the filter_xss_admin function to produce safe html. It's designed as a security measure and is in place even if the user has permissions to add PHP and unfiltered HTML in other contexts.

You can work around by using Views PHP for example. See this issue at drupal.org for discussion and more on workaround approaches.