?html is not allowed when auto-escaping is on

Keycloak v.4.6.0
Caused by: freemarker.core.ParseException: Syntax error in template "account.ftl" in line 66, column 143:                           
Using ?html (legacy escaping) is not allowed when auto-escaping is on with a markup output format (HTML), to avoid double-escaping m
istakes
This commit is contained in:
Javier Pena 2018-11-19 13:44:59 +01:00 committed by Matthew Helmke
parent da8ce0026e
commit f5b1f9b7bc

View file

@ -41,7 +41,7 @@ As an example to add a mobile number to the account page add the following snipp
</div>
<div class="col-sm-10 col-md-10">
<input type="text" class="form-control" id="user.attributes.mobile" name="user.attributes.mobile" value="${(account.attributes.mobile!'')?html}"/>
<input type="text" class="form-control" id="user.attributes.mobile" name="user.attributes.mobile" value="${(account.attributes.mobile!'')}"/>
</div>
</div>
----