try {
    cleanArgs = safeEval(tag.functionArgs);
  } catch (e) {
    throw new Error(`Error processing custom function arguments: ${e}`);
  }