We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Cells Java - Smart marker issue with HTML

Hi Aspose Cells team,

In our Excel template, we have the following smart marker:


Howerver when we provide the following value:

    designer.setDataSource("SUBTITLE", "<b><font color='green'>This cell is a Smart > Marker</font><b>");

Then it renders as:

nok.jpg (2.8 KB)

Could you please have a look?

Note: issue observed in both Aspose Cells Java 18.7 and 18.12


We were able to observe the issue but we need to look into it more. We have logged the issue in our database for investigation and for a fix. Once, we will have some news for you, we will update you in this topic.

This issue has been logged as

CELLSJAVA-42855 - Html string with '>' character not rendered correctly using SmartMarker


Please encode “>” as “&gt;” , see the updated line of code that works fine as I tested:
Sample code:

esigner.setDataSource("Subtitle", new String[] { "<b><font color='green'>This cell is a Smart &gt; Marker</font><b>" });

Hope, this helps a bit.

Thanks Amjad.
Yes, we have tested this workaround OK.
But we will wait for an official response about this issue before going into the huge code rework this workaround is requiring.


I am afraid, this issue won’t be fixed as you have to parse/encode the HTML tags by yourselves.