GNOME Bugzilla – Bug 728740
XML Output: Doxygen doesn’t escape & characters (included in a hyperlink) in <detaileddescription>
Last modified: 2014-08-21 17:15:35 UTC
+++ This bug was initially created as a clone of Bug #476562 +++ Please describe the problem: Doxygen doesn’t escape & characters (included in a hyperlink) in <detaileddescription> but copies them into the XML output. The XML files ar not valid and combine.xslt fails. Steps to reproduce: 1. Launch DoxyGen with an input file with & in a hyperlink Example InvalideXmlOutput.h: /** briefdescription text * * detaileddescription text * <a href="https://www.error.com/index.htm?document=number1&ph_id=">document name</a> */ class InvalideXmlOutput {} 2. Generate XML output 3. Launch Doxygen combine.xslt stylesheet on the output Actual results: Doxygen generates classInvalideXmlOutput.xml: <briefdescription><para>briefdescription text</para></briefdescription> <detaileddescription><para>detaileddescription text <ulink url="https://www.error.com/index.htm?document=number1&ph_id=">document name</ulink></para></detaileddescription> and combine.xslt fails Expected results: Doxygen should generate classInvalideXmlOutput.xml: <briefdescription><para>briefdescription text</para></briefdescription> <detaileddescription><para>detaileddescription text <ulink url="https://www.error.com/index.htm?document=number1&ph_id=">document name</ulink></para></detaileddescription> and combine.xslt should execute successfully. Does this happen every time? Yes
Another description of that bug: http://sourceforge.net/p/doxygen/discussion/130994/thread/9afd68fd/#4bf8
Created attachment 274899 [details] InputFile
Created attachment 274942 [details] doxyfile
HTML export doesn escape & characters (included in a hyperlink): <div class="textblock"><p>briefdescription text</p> <p>detaileddescription text <a href="https://www.error.com/index.htm?document=number1&ph_id=">document name</a> </p>
Typo: HTML export works correctly.
Escaping in programlisting of XML export is working correctly. doc\xml\_invalide_xml_output_8h.xml--- <programlisting> <codeline lineno="1"></codeline> <codeline lineno="6" refid="class_invalide_xml_output" refkind="compound"><highlight class="keyword">class<sp/></highlight><highlight class="normal"><ref refid="class_invalide_xml_output" kindref="compound">InvalideXmlOutput</ref><sp/>{<sp/>&test<sp/>}</highlight></codeline> </programlisting> Header input: class InvalideXmlOutput { &test }
Confirmed. Should be fixed in the next GIT update.
This bug was previously marked ASSIGNED, which means it should be fixed in doxygen version 1.8.8. Please verify if this is indeed the case. Reopen the bug if you think it is not fixed and please include any additional information that you think can be relevant (preferrably in the form of a self-contained example).