diff --git a/entity/Activity_entity/entityfields/infotable/valueProcess.js b/entity/Activity_entity/entityfields/infotable/valueProcess.js index 54f280282884c70778f950ac3da83d0bb3a0e43d..7366486c34ccb2b31b5286f24d4a4a5f0a7d855d 100644 --- a/entity/Activity_entity/entityfields/infotable/valueProcess.js +++ b/entity/Activity_entity/entityfields/infotable/valueProcess.js @@ -2,4 +2,9 @@ import("system.result"); import("system.vars"); import("system.text"); -result.string(text.html2text(vars.get("$field.INFO"))); \ No newline at end of file +// Remove all linebreaks +let info = vars.get("$field.INFO").replace(/\n/ig, ""); +// Remove all styles --> styles have no effect on the later text and they and these cause problems when converting +info = info.replace(/style=\".*\"/ig, ""); + +result.string(text.html2text(info));