Loading editor/src/htmlimport.cpp +6 −1 Changes for editor/src/htmlimport.cpp: 6 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -1414,7 +1414,12 @@ void collectPlainText(libhtmlpp::Element *node, std::string &out, size_t maxLen) // How deep the import picker tree recurses -- a safety net against // pathologically deep/malformed input HTML; nodes past this depth are still // importable individually, just not expanded any further in the picker. const int kMaxImportTreeDepth = 12; // Real-world page-builder markup (deeply nested wrapper divs for flex/grid // layout) routinely runs 20-30 levels deep -- confirmed against a live site // that hit exactly this cap when it was 12, silently hiding most of the // page in the picker -- so this needs real headroom above that, not just // enough for a "normal" hand-written page. const int kMaxImportTreeDepth = 200; std::string collapseWhitespace(const std::string &text, size_t maxLen) { Loading Loading
editor/src/htmlimport.cpp +6 −1 Changes for editor/src/htmlimport.cpp: 6 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -1414,7 +1414,12 @@ void collectPlainText(libhtmlpp::Element *node, std::string &out, size_t maxLen) // How deep the import picker tree recurses -- a safety net against // pathologically deep/malformed input HTML; nodes past this depth are still // importable individually, just not expanded any further in the picker. const int kMaxImportTreeDepth = 12; // Real-world page-builder markup (deeply nested wrapper divs for flex/grid // layout) routinely runs 20-30 levels deep -- confirmed against a live site // that hit exactly this cap when it was 12, silently hiding most of the // page in the picker -- so this needs real headroom above that, not just // enough for a "normal" hand-written page. const int kMaxImportTreeDepth = 200; std::string collapseWhitespace(const std::string &text, size_t maxLen) { Loading