How do I escape double quotes in attributes in an XML String in T-SQL?

后端 未结 4 577
予麋鹿
予麋鹿 2020-12-23 13:17

Pretty simple question - I have an attribute that I would like to have double quotes in. How do I escape them? I\'ve tried

  • \\\"
  • \"\"
  • \\\\\"
4条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-23 13:40

    Cannot comment anymore but voted it up and wanted to let folks know that " works very well for the xml config files when forming regex expressions for RegexTransformer in Solr like so: regex=".*img src="(.*)".*" using the escaped version instead of double-quotes.

提交回复
热议问题