Rewriting output of View I have a View of taxonomies. I want to rewrite the output of each field (name) as this:

&lt;a href="javascript: void(0);" onClick="alert('[name]');"&gt;[name]&lt;/a&gt;


so when I click on the taxonomy, it will prompt an alert with the term name.

I try to rewrite through the Views GUI to no avail.
I even tried with views_pre_renderbut because there is no #markup property, the rewriting is not HTML but plain text.
I did the trick with views_pre_render and other kind of content, but not in taxonomy. And is it really impossible to achieve that in the GUI ? Surely I am missing something very very basic here.
You can do this through theming.

For that you can create a new views-view-field--VIEW_NAME--FIELD_NAME.tpl.php file and write the HTML output for the field.

Dont't forget to clear your cache after adding the file or you can do 'Rescan template files' inside your view.