mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-13 14:35:33 +10:00
Feature: Implement Cover Letters as a custom section type (#2659)
This commit is contained in:
+2
-1
@@ -64,6 +64,7 @@ export function generateRandomName() {
|
||||
* @param html - The HTML string to strip.
|
||||
* @returns The text content without HTML tags.
|
||||
*/
|
||||
export function stripHtml(html: string) {
|
||||
export function stripHtml(html: string | undefined) {
|
||||
if (!html) return "";
|
||||
return html.replace(/<[^>]*>/g, "").trim();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user