Hey @samchon, thanks again for the progress you are making with this lib.
When using class transformer I am able to add a transform decorator to sanitize user input.
see this example I pulled from Stack overflow
import { ApiProperty } from '@nestjs/swagger';
import { Transform } from 'class-transformer';
import { IsString } from 'class-validator';
import * as sanitizeHtml from 'sanitize-html';
export class ContactInfoDTO {
@ApiProperty()
@IsString()
@Transform((params: TransformFnParams) => sanitizeHtml(params.value))
public body: string;
}
What is the best way to achieve this while using nestia / typia?
Best Regards
David
Question
Hey @samchon, thanks again for the progress you are making with this lib. When using class transformer I am able to add a transform decorator to sanitize user input. see this example I pulled from Stack overflow
What is the best way to achieve this while using nestia / typia? Best Regards David