T-SQL Algorithm to Encode Unsafe HTML Characters as HTML Character Entity References

前端 未结 3 2164
情深已故
情深已故 2021-01-03 12:40

I need to create an after insert trigger in my SQL Server 2008 R2 database.

The trigger needs to take some fields from INSERTED, process them and pu

3条回答
  •  清歌不尽
    2021-01-03 13:08

    Declare @Expression nvarchar(max) = 'Y<1'
    
    Select @Expression = (Select @Expression For XML Path(''))
    
    Select @Expression
    

提交回复
热议问题