mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-13 14:35:33 +10:00
- fixes #2598
This commit is contained in:
@@ -58,3 +58,12 @@ export function generateRandomName() {
|
||||
length: 3,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Strips HTML tags from a string and returns the text content.
|
||||
* @param html - The HTML string to strip.
|
||||
* @returns The text content without HTML tags.
|
||||
*/
|
||||
export function stripHtml(html: string) {
|
||||
return html.replace(/<[^>]*>/g, "").trim();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user