Tools, FAQ, Tutorials:
Use & in '@(...)' Expressions
How to enter & entity in '@(...)' expressions?
✍: FYIcenter.com
If you want to enter the & sequence in a '@(...)' expressions,
you must enter it as &.
This is because all XML entities will be decoded immediately, when Azure process the policy XML document.
For example, the following "set-variable" policy statement uses a "@(...)" expression that contains the & entity:
<set-variable name="entity" value="@("& = &amp;")" />
The above statement will set "& = &" into the "entity" variable.
The same logic is true for all other XML entities:
< and < give the same result in @(...) > and > give the same result in @(...) & and & give the same result in @(...)
⇒ '@{...}' Expression Blocks in Azure API Policy
2017-11-12, ∼5186🔥, 0💬
Popular Posts:
Where to get the detailed description of the json_encode() Function in PHP? Here is the detailed des...
Where to get a real Atom XML example? You can follow this tutorial to get a real Atom XML example: 1...
How to convert JSON Objects to PHP Associative Arrays using the json_decode() function? Actually, JS...
How To Protect Special Characters in Query String in PHP? If you want to include special characters ...
How to create a new API on the Publisher Dashboard of an Azure API Management Service? If you are ne...