fix html attempt 2

This commit is contained in:
2026-06-19 17:19:26 +02:00
parent ef9ebe3512
commit a383de5a5f
3 changed files with 11 additions and 7 deletions

View File

@@ -124,9 +124,13 @@ public class PlantUml implements StateMachineExporter {
sb.append(" : [[#").append(linkId).append(" ");
if (!label.isEmpty()) {
sb.append(label);
String sanitized = label.replace("[", "[")
.replace("]", "]")
.replace("<", "&lt;")
.replace(">", "&gt;");
sb.append(sanitized);
} else {
sb.append("<color:transparent>.</color>");
sb.append(".");
}
sb.append("]]");
} else if (!label.isEmpty()) {