Skip to content

Commit

Permalink
SAK-50813 Site titles with ampersands distorted during publishing (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
hornersa authored Jan 24, 2025
1 parent b9e5060 commit 8a37c6d
Showing 1 changed file with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -936,11 +936,7 @@ public void updateEntity(EntityReference ref, Object entity, Map<String, Object>
// check site title
String title = site.getTitle();
if (title != null) {
StringBuilder alertMsg = new StringBuilder();
title = formattedText.processFormattedText(title, alertMsg);
if (title == null) {
throw new IllegalArgumentException("Site title markup rejected: " + alertMsg.toString());
}
title = formattedText.stripHtmlFromText(title, true, true);
}

// check short description
Expand Down Expand Up @@ -1017,11 +1013,7 @@ public void updateEntity(EntityReference ref, Object entity, Map<String, Object>
// check site title
String title = site.getTitle();
if (title != null) {
StringBuilder alertMsg = new StringBuilder();
title = formattedText.processFormattedText(title, alertMsg);
if (title == null) {
throw new IllegalArgumentException("Site title markup rejected: " + alertMsg.toString());
}
title = formattedText.stripHtmlFromText(title, true, true);
}

// check short description
Expand Down

0 comments on commit 8a37c6d

Please sign in to comment.