USE [FabApprovalSystem]
GO
  /****** Object:  UserDefinedFunction [dbo].[EncodeHtml]    Script Date: 11/21/2024 11:31:55 AM ******/
SET
  ANSI_NULLS ON
GO
SET
  QUOTED_IDENTIFIER ON
GO
  CREATE FUNCTION [dbo].[EncodeHtml] (@RawStr varchar(max)) RETURNS varchar(max) AS BEGIN RETURN REPLACE(
    REPLACE(REPLACE(@RawStr, '&', '&AMP;'), '<', '&lt;'),
    '>',
    '&gt;'
  )
END
GO