<% function METHOD(str) { return str. replace(/\(([^\)]*)\)/g, '($1)'). replace(/\[([^\)]*)\]/g, '[$1]'). replace(/\n/g, '
'). replace(/new /g, ''); } %>

APIs