Fix hex color string parsing.

UIMarkdownView now uses the HTMLFormatter::HTMLtoXML.
Removed formatting hack to force strict XML from HTML, now we should always use HTMLFormatter::HTMLtoXML.
This commit is contained in:
Martín Lucas Golini
2026-05-20 01:39:05 -03:00
parent 7daca81bd6
commit 0defa0ada3
7 changed files with 82 additions and 103 deletions

View File

@@ -1118,7 +1118,7 @@ UTEST( UIHTMLBody, maxWidthResizingBug ) {
std::string htmlContent;
FileSystem::fileGet( "assets/html/dwarmstrong/dwarmstrong.html", htmlContent );
sceneNode->loadLayoutFromString( htmlContent );
sceneNode->loadLayoutFromString( HTMLFormatter::HTMLtoXML( htmlContent ) );
sceneNode->getRoot()->setSize( 1024, 768 );
sceneNode->updateDirtyLayouts();