In spring framework we have something like below to escape html characters
<context-param>
<param-name>defaultHtmlEscape</param-name>
<param-value>true</param-value>
</context-param>
I also want to add a custom class which can also escape characters like
!"#$%&*+/:;=?@[]^`{|}~\
is there a class in Spring framework to do this?(I think, NO) If not, I can have utility class which can convert all the characters.
Used the utility class like a filter to encode the values(input validation)
I want to know If I can use the same filter to encode for output as well?
issue is output still shows the same as entered value instead of encoding like &LT;
for <
. Any suggestions are greatly appreciated!