In this one stored procedure being called by an API to update a record, there's lots of instances of this:
SET @NewField = REPLACE(ISNULL(@InputField, ''), '''', '''''')
I get the ISNULL part, and I know '' escapes a single quote, but I cannot figure out what the intent of four and six quotes is?