This commit is contained in:
2024-09-30 08:04:21 -06:00
parent b7e2e4fa91
commit 2dab8bcd6e
3 changed files with 15 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
import { describe, expect, it } from "vitest";
import { htmlIsCloseEnough, removeHtmlDetails } from "./htmlIsCloseEnough";
import { removeHtmlDetails } from "./htmlIsCloseEnough";
describe("html can be close enough", () => {
it("scenario 1", () => {

View File

@@ -18,7 +18,6 @@ export const removeHtmlDetails = (html: string) => {
.replaceAll(/\\"/g, '"')
.replaceAll(/\s/g, "")
.replaceAll(/<hr\s*\/?>/g, "<hr>")
.replaceAll(/<hr\s*\/?>/g, "<hr>")
.replaceAll(/<br\s*\/?>/g, "<br>")
.replaceAll(/&gt;/g, "")
.replaceAll(/&lt;/g, "")