// Decode HTML entities (&lt; &gt; &amp; &quot;) that may come double-encoded from the API
export const decodeHtmlEntities = (html: string): string => {
  if (!html) return '';
  const textarea = document.createElement('textarea');
  textarea.innerHTML = html;
  return textarea.value;
};
