function replaceTags(value, config) {
  let newValue = value;
  if (config && config.changes) {
    for (const change of config.changes) {
      if (change.tag) {
        const { from, to } = change.tag;
        newValue = replaceTag(newValue, from, to);
      }
    }
  }
  return newValue;
}
@param {string} value
@param {{changes: Array<{ tag: { from: string, to: string }}> }} config
@returns {string} value with replaced tags