Hi Markus,
A late answer to your question, but I believe that the solution for problem 3 can be found in the following forum post: https://forum.mendix.com/link/space/studio-pro/questions/114302.
Cheers,
Jeffrey
I found a userlib --> commons-text-1.10.0 here --> https://commons.apache.org/proper/commons-text/download_text.cgi
Downlaoded the jar file and inserted it in my user lib. Then I created a java action that I use to unescape the HTML -->
// BEGIN USER CODE
return StringEscapeUtils.unescapeHtml4(this.InputHTML_Unescaped);
// END USER CODE
where the static class is imported like this in the upperside of the code -->
import org.apache.commons.text.StringEscapeUtils;
Hi Guys,
thank you very much for your feedback and help.
I have followed the tips and tried something but found out something which I didn´t expect, therefore I want to give you feedback from my side:
First I replaced the critical symbol (in my case ) by its Unicode value like written by Michael Hero: replaceAll($HTMLToChange,' ',' ') and it worked.
With a bad feeling in the background if some other symbols and characters could make trouble I implemented the usage of the unescapeHTML4 routine like suggested.
The problem was also solved but I got a lot of other problems for example with this text:
Mustermann, Max (R&D)
<max.mueller@siemens.com>
it was converted into:
Mustermann, Max (R&D)
<max.mustermann@siemens.com>
which was originally working fine with the PDF converter but after using the unescapeHTML4 routine it was converted to:
Mueller, Max (R&D)
This leads to an error because the compiler expected an command because of &…
<max.mustermann@siemens.com>
This lead also to an error because the compiler was thinking this is an start tag of HTML.
Therefore now I switched back to an replacement of critical value manually.
Only for your information that escapeHTML is not really solving this problem.
Hi Guys,
thank you very much for your feedback and help.
I have followed the tips and tried something but found out something which I didn´t expect, therefore I want to give you feedback from my side:
First I replaced the critical symbol (in my case ) by its Unicode value like written by Michael Hero: replaceAll($HTMLToChange,' ',' ') and it worked.
With a bad feeling in the background if some other symbols and characters could make trouble I implemented the usage of the unescapeHTML4 routine like suggested.
The problem was also solved but I got a lot of other problems for example with this text:
Mustermann, Max (R&D)
<max.mueller@siemens.com>
it was converted into:
Mustermann, Max (R&D)
<max.mustermann@siemens.com>
which was originally working fine with the PDF converter but after using the unescapeHTML4 routine it was converted to:
Mueller, Max (R&D)
This leads to an error because the compiler expected an command because of &…
<max.mustermann@siemens.com>
This lead also to an error because the compiler was thinking this is an start tag of HTML.
Therefore now I switched back to an replacement of critical value manually.
Only for your information that escapeHTML is not really solving this problem.
Hi Guys,
thank you very much for your feedback and help.
I have followed the tips and tried something but found out something which I didn´t expect, therefore I want to give you feedback from my side:
First I replaced the critical symbol (in my case ) by its Unicode value like written by Michael Hero: replaceAll($HTMLToChange,' ',' ') and it worked.
With a bad feeling in the background if some other symbols and characters could make trouble I implemented the usage of the unescapeHTML4 routine like suggested.
The problem was also solved but I got a lot of other problems for example with this text:
Mustermann, Max (R&D)
<max.mueller@siemens.com>
it was converted into:
Mustermann, Max (R&D)
<max.mustermann@siemens.com>
which was originally working fine with the PDF converter but after using the unescapeHTML4 routine it was converted to:
Mueller, Max (R&D)
This leads to an error because the compiler expected an command because of &…
<max.mustermann@siemens.com>
This lead also to an error because the compiler was thinking this is an start tag of HTML.
Therefore now I switched back to an replacement of critical value manually.
Only for your information that escapeHTML is not really solving this problem.
Markus