Skip to content

Commit

Permalink
LPS-193971 extract before shorten because short first can cause the d…
Browse files Browse the repository at this point in the history
…eletion of the end of a html tag
  • Loading branch information
AliciaGarciaGarcia authored and brianchandotcom committed Jan 10, 2024
1 parent 9aa44a5 commit ad58419
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1089,8 +1089,8 @@ public void updateAsset(
visible = true;
}

String summary = _htmlParser.extractText(
StringUtil.shorten(entry.getContent(), 500));
String summary = StringUtil.shorten(
_htmlParser.extractText(entry.getContent()), 500);

AssetEntry assetEntry = _assetEntryLocalService.updateEntry(
userId, entry.getGroupId(), entry.getCreateDate(),
Expand Down

0 comments on commit ad58419

Please sign in to comment.