How do you decode a base64 field?

Hi I’m trying to use the new contentnote object. In the custom render for the content field in a list view:
value1 = arguments[1];
text = window.atob(value1);
skuid.ui.fieldRenderers[‘TEXTAREA’]field.mode;

In the custom render for the content field in a field editor:
value1 = arguments[1];
text = window.btoa(value1);
skuid.ui.fieldRenderers[‘TEXTAREA’]field.mode;

The value displays as
W29iamVjdCBPYmplY3Rd

Do you have an example for custom rendering base64 field?

Thanks.