I have a case here where I am parsing a page from an XHTML to string value. The XHTML content is the page content where an anchor tag is linked to a certain part of the page. So the XHTML shows like
<ac:link ac:anchor="test"/>, so when I rendered using the XHTML renderer library from confluence it only returned the page URL without the anchor link or the “#test” supposed to be.
Apologies, if this confuses you, this is my first time posting here and I am having a hard time explaining the issue, please feel free to ask questions.