Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
deepakprabhakara committed Feb 20, 2024
1 parent 3bdee65 commit 4c955a0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/post.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
const escapeHtml = (unsafeHtml: string) => {
return unsafeHtml
.replace(/&/g, "&")
.replace(/</g, "&lt;")
.replace(/>/g, "&gt;")
.replace(/"/g, "&quot;")
.replace(/'/g, "&#039;");
}
.replace(/&/g, '&amp;')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;')
.replace(/"/g, '&quot;')
.replace(/'/g, '&#039;');
};

const createPostForm = (postUrl: string, params: { name: string; value: string }[]) => {
const parr = (params || []).map(({ name, value }) => {
Expand Down

0 comments on commit 4c955a0

Please sign in to comment.