.getDisplayText() to decode html entities (Aspose.Diagram Java 22.10, .vsd files)

In some cases the text contains html character entities (e.g. &) Visio visual basic macros properly return the unicode text, but aspose sometimes doesn’t. It would be nice to have getDisplayText() to perform a html unescape, so the two outputs (aspose and visio) are consistent.

Visio version: MS Visio Professional 2016

Aspose.Diagram version (Java): aspose-diagram-22.10

I’ve attached an example file, you can check the text from visio with the following Visual Basic macro (select the shape in visio - e.g. with mouse or in drawing explorer - before running the script).

Sub GetNameU()
    Set sel = ActiveWindow.Selection
    sel.IterationMode = 0
    Set shp = sel.PrimaryItem
    Debug.Print shp.Text
End Sub
  • wrong_displaytext_encoding.vsd
    • id: 814
    • correct Text: M&B
    • aspose DisplayText: M&B

Thanks for the previous set of fixes.

wrong_displaytext_encoding.zip (13.2 KB)

@msardi

We have logged an issue as DIAGRAMJAVA-51044 in our issue tracking system for further investigation. We will look into its details and keep you posted with the status of its correction. Please be patient and spare us some time.

We apologize for the inconvenience.

The issues you have found earlier (filed as DIAGRAMJAVA-51044) have been fixed in this update. This message was posted using Bugs notification tool by philip.zhou