You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The export functionality at http://localhost:8080/index.php?mod=install&action=export&step=2 creates invalid HTML.
The functionality exports Database content in a raw fashion. If the content contains a & char (e.g. in a link), the XML output is invalid and can't be displayed in a browser.
Expected Behavior
XML export creates valid HTML.
Possible Solution
I think the XML class should be split into a XMLReader and XMLWriter.
This makes the responsibility clear.
Current Behavior
The export functionality at http://localhost:8080/index.php?mod=install&action=export&step=2 creates invalid HTML.
The functionality exports Database content in a raw fashion. If the content contains a
&
char (e.g. in a link), the XML output is invalid and can't be displayed in a browser.Expected Behavior
XML export creates valid HTML.
Possible Solution
I think the XML class should be split into a XMLReader and XMLWriter.
This makes the responsibility clear.
The XMLReader can be supported via Symfony DomCrawler Component: https://symfony.com/doc/current/components/dom_crawler.html
The XMLWriter should use https://www.php.net/manual/en/book.xmlwriter.php to ensure proper XML is written.
Steps to Reproduce (for bugs)
The text was updated successfully, but these errors were encountered: