Skip to content

Commit

Permalink
add encodeURIComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
seadfeng committed Aug 29, 2024
1 parent 8698f00 commit de38927
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/frontend/page/style/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function StyleMain({

const onChange=(e: React.ChangeEvent<HTMLTextAreaElement>)=>{
setContent(e.target.value);
router.replace(`${pathname}?text=${e.target.value}`);
router.replace(`${pathname}?text=${encodeURIComponent(e.target.value)}`);
}

const currentFonts = style === "all" ? fontKeys : styleFonts[style];
Expand Down

0 comments on commit de38927

Please sign in to comment.