Files

5 lines
234 B
TypeScript
Raw Permalink Normal View History

/** حذف برچسب‌های ویرایشی (#1, #2, ...) از ابتدای متن HTML نقل‌قول. */
export function sanitizeBlockquoteContent(html: string): string {
return html.replace(/(^|>)\s*#\d+\s*/g, "$1").trim();
}