Cannot get xslt to output an (&) even after escaping the character

后端 未结 13 1728
轮回少年
轮回少年 2020-12-17 10:13

I am trying to create a query string of variable assignments separated by the & symbol (ex: \"var1=x&var2=y&...\"). I plan to pass this

13条回答
  •  [愿得一人]
    2020-12-17 10:39

    Using the disable-output-escaping attribute (a boolean) is probably the easiest way of accomplishing this. Notice that you can use this not only on but also with , which might be cleaner, depending on your specific case.

    Here's the relevant part of the specification: http://www.w3.org/TR/xslt#disable-output-escaping

提交回复
热议问题