added export keyword
This commit is contained in:
parent
a96702b0a8
commit
c24097245b
1 changed files with 1 additions and 1 deletions
|
|
@ -198,7 +198,7 @@ export function stripHtmlKeepLines(htmlString) {
|
||||||
.replace(/<[^>]*>/g, '') // removes any other HTML tags
|
.replace(/<[^>]*>/g, '') // removes any other HTML tags
|
||||||
.trim(); // removes leading/trailing whitespace
|
.trim(); // removes leading/trailing whitespace
|
||||||
}
|
}
|
||||||
function htmlBodyToPlainText(htmlString) {
|
export function htmlBodyToPlainText(htmlString) {
|
||||||
// Create a new DOMParser instance
|
// Create a new DOMParser instance
|
||||||
const parser = new DOMParser();
|
const parser = new DOMParser();
|
||||||
// Parse the HTML string
|
// Parse the HTML string
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue