Remove HTML Tags from Stages Element Descriptions within the Data Set Script

The following function can be used for Data Set scripts and will remove all HTML tags.

Instructions

1. Add the following javascript function to your Data Set script.

function stripHTML(str){
 var s=new String(str);
 var re= /<\S[^><]*>/g
 return s.replace(re, "")
}

2. Use the function stripHTML(description); in your Data Set script to clean up the description.