Skip to content

Preserve soft line breaks in profile descriptions - #1001

Open
salomaoparkour wants to merge 2 commits into
LinkStackOrg:mainfrom
salomaoparkour:fix/preserve-profile-soft-line-breaks
Open

Preserve soft line breaks in profile descriptions#1001
salomaoparkour wants to merge 2 commits into
LinkStackOrg:mainfrom
salomaoparkour:fix/preserve-profile-soft-line-breaks

Conversation

@salomaoparkour

Copy link
Copy Markdown

Summary

  • allow <br> tags when saving profile descriptions
  • preserve the same behavior when importing profile data
  • keep the existing event-handler and URL protocol sanitization intact

Problem

CKEditor creates a <br> element for Shift+Enter. The profile description sanitizer did not allow <br>, so the element was removed on save and soft line breaks disappeared.

Testing

  • git diff --check
  • PHP 8.3 syntax check
  • validated the change against a running LinkStack 4.8.6 Docker installation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant