mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 07:38:33 -06:00
html
This commit is contained in:
@@ -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", () => {
|
||||
|
||||
@@ -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(/>/g, "")
|
||||
.replaceAll(/</g, "")
|
||||
|
||||
Reference in New Issue
Block a user