I'm telling the view to display a field with the NID contents. I'm telling it that I wish to "Rewrite the output of this field" and I enter:
<a href=”javascript:void(0);” onclick="javascript: approve([nid])" >Approve</a>
When viewing the page, all the javascript has been stripped. How do I get views to accept javascript in the link, or what other way can I use to display a link?
Note: Custom Text field doesn't work either.