私はxmlタグを生成するためのクエリを書くとき、私のSQLクエリでhtmlタグを保持したいと思います。たとえば :sqlを使用してxmlをクエリするとき、HTMLタグをどのように保持しますか?
select '<p> this is a code</p>' as code
from table name
for xml path (''), type
出力:
<code><p> this is a code </p> <code>
それが出力すべきか:
<code><p> this is a code </p><code>
どのように私はこの問題を解決するのですか?ありがとう!
For XML Explici私は信じています。 http://stackoverflow.com/questions/1947884/how-to-get-sql-query-to-not-escape-html-data-returned-in-query –