Skip to content

Instantly share code, notes, and snippets.

@am3br
am3br / removeattributes.jsx
Created August 13, 2018 03:58
Adobe ExtendScript to remove attributes from elements in Robohelp topics
/***********************************************************************************************************
* $$FileName Removeattributes.jsx
*
* $$Description Select topics and remove attributes from html tags, except href,
* src, target and self-closing tags (e.g. img).
*
* This script is intended to clean up topics freshly imported into Adobe Robohelp.
* HOWEVER, it will happily run on your existing topics, and ruin your intended
* styling and RH features.
*