I am using DocumentBuilder to create a document and have a problem when inserting hyperlinks. This fragment demonstrates the problem.
// builder is a DocumentBuilder from somewhereNotice that the query of the URL in the contains the HTML entity & rather than the ampersand character as it has come from an XHTML document. Aspose.Words does not decode this entity so the document ends up with a URL that does not work:
builder.InsertHtml("<a href=“http://www.google.co.uk/search?hl=en-GB&q=pictures+of+cats”>Google for cat pictures");