UNPKG

@lobehub/editor

Version:

A powerful and extensible rich text editor built on Meta's Lexical framework, providing a modern editing experience with React integration.

18 lines (17 loc) 483 B
export { isValidUrl } from "../../../utils/url"; /** * Sanitizes a URL to ensure it's safe to use * @param url - The URL to sanitize * @returns The sanitized URL */ export declare function sanitizeUrl(url: string): string; /** * Extracts URL from text * @param text - The text to extract URL from * @returns The extracted URL information or null */ export declare function extractUrlFromText(text: string): { index: number; length: number; url: string; } | null;