Add function for extracting text from HTML string #1

Closed
opened 2024-05-09 19:20:18 +00:00 by CTO · 3 comments
Owner
Based on https://git.resultium.net/technology/tracker/issues/15#issuecomment-6900
CTO added the
Kind/Feature
Priority
Medium
labels 2024-05-09 19:20:18 +00:00
Author
Owner

@bigamoney53 send the function, if you wish you could do this task

@bigamoney53 send the function, if you wish you could do this task
Author
Owner

@bigamoney53 ?

@bigamoney53 ?
Member
const strip = (html: string) => {
  const DOMParser = new JSDOM().window.DOMParser;

  let doc = new DOMParser().parseFromString(html, "text/html");
  return doc.body.textContent || "";
};
``` const strip = (html: string) => { const DOMParser = new JSDOM().window.DOMParser; let doc = new DOMParser().parseFromString(html, "text/html"); return doc.body.textContent || ""; }; ```
CTO self-assigned this 2024-05-19 11:48:28 +00:00
CTO changed title from Add text serialization function for HTML strings to Add text extraction function from HTML strings 2024-05-19 11:49:12 +00:00
CTO started working 2024-05-19 11:50:55 +00:00
CTO changed title from Add text extraction function from HTML strings to Add function for extracting text from HTML string 2024-05-19 13:23:56 +00:00
CTO closed this issue 2024-05-19 13:40:35 +00:00
CTO worked for 1 hour 49 minutes 2024-05-19 13:40:35 +00:00
Sign in to join this conversation.
2 Participants
Notifications
Total Time Spent: 1 hour 49 minutes
CTO
1 hour 49 minutes
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: public/utils#1
No description provided.