diff --git a/backend/src/routes/post/controller.ts b/backend/src/routes/post/controller.ts index 4235c03..cd43eaa 100644 --- a/backend/src/routes/post/controller.ts +++ b/backend/src/routes/post/controller.ts @@ -711,8 +711,8 @@ export const aiCustomization = async (req: UserAuthRequest, res: Response) => { const cssResponse = await cssResult.response; const jsResponse = await jsResult.response; - const cssText = cssResponse.text(); - const jsText = jsResponse.text(); + const cssText = cssResponse.text().replace('```html','').replace('```',''); + const jsText = jsResponse.text().replace('```javascript','').replace('```',''); res.json({ css: cssText, js: jsText });