const START_HIGH_LIGHT_TAG = "<span class='card-item__highlight'>";
const END_HIGH_LIGHT_TAG = "</span>";
export function replaceHighlight(value) {
  const startHighlight = new RegExp(START_HIGH_LIGHT_TAG, 'g');
  const endHighlight = new RegExp(END_HIGH_LIGHT_TAG, 'g');
  const newValue = String(value !== null && value !== void 0 ? value : "").replace(startHighlight, '').replace(endHighlight, '');
  return replaceQuotes(newValue);
}
export function replaceQuotes(text) {
  if (text == undefined) {
    return;
  }
  return String(text)
    .replace(/&amp;/g, '&')
    .replace(/&lt;/g, '<')
    .replace(/&gt;/g, '>')
    .replace(/&quot;/g, '"');
}
