const decodeEscapedXML = (str: string) =>
str
.replace(/&/g, "&")
.replace(/'/g, "'")
.replace(/"/g, '"')
.replace(/>/g, ">")
.replace(/</g, "<");
Seems like it's in multiple places in the code base too, I think all those clients are automatically generated.https://github.com/aws/aws-sdk-js-v3/search?p=1&q=const+deco...
So that's not even a good fix, think he should have fixed
aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/resources/software/amazon/smithy/aws/typescript/codegen/decodeEscapedXML.ts