Defect #1604
Issue with $htmlize.get
0%
Description
I am testing the new Velocity plugin 4.0. All looks good my compliments but I encounter 1 issue regarding the $htmlize.get
What I noticed is that doesn't restore < and > anymore what means invalid html.
For example the result of $htmlize.get is now this:
<div class='status_red' title='red'> </div>
In version 3.8.1 (what we currently using):
<div class='status_red' title='red'> </div>;
In our HTML we use the following:
<div class='status_red' title='red'> </div>; <pre> In our HTML we use the following: <pre> <td class="icon">$!htmlize.get($!status_func.call(6, $record.care_treatment_id))</td> </pre> This function $!status_func will return a <div> <span> or <html> I saw in the code that in version 3.8.2 a change was in this function. Can you help us, Kind regard, John Makkink eFertility
History
Updated by John Makkink about 2 months ago
I am testing the new Velocity plugin 4.0. All looks good my compliments but I encounter 1 issue regarding the $htmlize.get
What I noticed is that doesn't restore < and > anymore what means invalid html.
For example the result of $htmlize.get is now this:
<div class='status_red' title='red'> </div>
In version 3.8.1 (what we currently using):
<div class='status_red' title='red'> </div>;
In our HTML we use the following:
<td class="icon">$!htmlize.get($!status_func.call(6, $record.care_treatment_id))</td>
This function $!status_func will return a <div> <span> or <html> like in the examples above
I saw in the code that in version 3.8.2 a change was in this function.
Can you help us,
Kind regard,
John Makkink
eFertility
Updated by Patrick Talbot about 2 months ago
- Status changed from New to Resolved
Thanks for reporting, John!
I found the issue and fixed it in v4.0.1 released today.
Check it out from the Files section and let me know how it goes.
BTW, if you have put the "VM_global_library.vm" file in your report folder (at the top level), you can use the macro #h() instead of $!htmlize.get(), so this could be:
<td class="icon">#h($!status_func.call(6, $record.care_treatment_id))</td>