diff --git a/src/v2/controller/post.controller.ts b/src/v2/controller/post.controller.ts index 3e749ad..bd8f72e 100644 --- a/src/v2/controller/post.controller.ts +++ b/src/v2/controller/post.controller.ts @@ -120,7 +120,7 @@ export class PostController extends Controller { @Path() id: number, @Body() postToUpdate: CreateWebsitePost, ): Promise { - postToUpdate.description = this.sanitizeDescription(postToUpdate.description); + postToUpdate.description = DOMPurify.sanitize(postToUpdate.description); return this.service.update(id, postToUpdate); }