Problem with decoding
<
>
I have method in Java that generate html code for example
<strong>ID</strong>
I use velocity to get variables and in my HTML i get output <strong>ID<strong>
. Text is not strong, but I have result with tags. How to resolve this?
Strings in java see / as an escape character, so the plain text you are generating is escaping instead of outputting the /
Off the top of my head, I can't remember how to fix it, but vaguely remember you have to do something like
outputString = "<strong>ID<//strong>"
Sorry, my java "escaping slashes" memory is very old
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.