Hi,
I’ve noticed a bug where hyperlinks with a colon will sometimes cause their text to be overwritten with the link address.
Example:
shape.getTextFrame().getParagraphs().addFromHtml('<div class="product_description2" style="font-family: Arial;font-size: 12pt;line-height: 100;color: black"><p style="font-family: Arial;margin-bottom: 83px"><a href="http://example.com/a-link" style="color: #1ea8e1">Makep:rem Blah blah</a> blah blah blah</p></div>')
displays as
http://example.com/a-link
blah blah blah
This issues does not seem to occur without the wrapping <div> and <p>, or if <!-- a comment--> Makep:rem ...etc
is used instead (with a space before Makep:rem; so I’m guessing it’s quite a specific bug related the formatting or something.
This is with Aspose Slides for Java 16.11.0, so I’m not sure if this still occurs in newer versions.
Any help would be greatly appreciated,
Thanks,
Sam Cheshire