Skip to content

Commit

Permalink
feat(micromark-util-sanitize-uri) added
Browse files Browse the repository at this point in the history
  • Loading branch information
valentin-panov committed Aug 30, 2023
1 parent 45cae1c commit e9a8bbb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions components/testLib/test_Component/testComponent.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { createRef, useEffect } from "react";
import xssFilters from "xss-filters";
import { decodeURLnew } from "@utils/url-parse";
// import { decodeURLnew } from "@utils/url-parse";
import { sanitizeUri } from "micromark-util-sanitize-uri";

interface Props {
payload: string;
Expand All @@ -21,7 +22,7 @@ const TestComponent: React.FC<Props> = ({ payload }) => {
}, [payload, tooltipId, tooltipRef]);

return (
<a ref={tooltipRef} href={decodeURLnew(payload)}>
<a ref={tooltipRef} href={sanitizeUri(payload)}>
INSPECT ME!
</a>
);
Expand Down

0 comments on commit e9a8bbb

Please sign in to comment.