Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

246 B
Raw Blame
import { isSafeUrl } from "./sanitize.js";

export function hyperlink(text: string, url: string, enabled: boolean): string {
  if (!enabled || !text || !isSafeUrl(url)) return text;
  return `\u001b]8;;${url}\u001b\\${text}\u001b]8;;\u001b\\`;
}