I’m having problems with html links added to a document builder - when I read the text back I get HYPERLINK \l inside the text. This is what I’m doing:
string someHtml = “test”;
string text = builder.Document.GetText() -> returns "HYPERLINK \l “BLOCKED SCRIPT…” test "
I expect to get back just “test”. Any ideas what can be wrong ? (the Aspose.words version is 126.96.36.199).
Thanks for your inquiry. Hyperlink is inserted into the document as field. That’s why you get this text. You can try using the following snippet.
string text = builder.Document.ToTxt();
Hope this helps.