diff --git a/src/node/handler/ImportHandler.js b/src/node/handler/ImportHandler.js index 9109853e6..4fc2e686c 100644 --- a/src/node/handler/ImportHandler.js +++ b/src/node/handler/ImportHandler.js @@ -213,13 +213,10 @@ async function doImport(req, res, padId) * title and comment it out independently on the classes that are set on it. * * @todo what happens if /)){ - text = text.replace("<title", "<!-- <title"); - text = text.replace("","-->"); - } else { - text = text.replace(/]*\/>/,''); - } + text = text.replace("","-->"); // node on windows has a delay on releasing of the file lock. // We add a 100ms delay to work around this