My Requirement is to display any particular text eg: 'XYZ' based on the RTF Field UE_GEN_DETAILEDDESCRTF, when UE_GEN_DETAILEDDESCRTF is not null its should display 'XYZ'.
here
UE_GEN_DETAILEDDESCRTF return some HTML values, to get the actual value i used this tag. this works fine.

However my requirement is to use the html2fo tag with condition. Below are the options tried but no luck.

Option 1.
Option 2.