"pre" formatting stripped from group forum email notifications
See http://commons.gc.cuny.edu/groups/cuny-academic-commons-subcommittee/forum/topic/effect-of-email-blast-on-inactive-users-preliminary-numbers/#post-47972. The pre tags were stripped in the email notification.
Adding Ray as a watcher just in case his steel-trap mind immediately seizes upon the reason.
#2 Updated by Raymond Hoh over 5 years ago
pre tag in group email notifications is stripped because BP's activity KSES filter (
bp_activity_filter_kses()) does not list
pre as a whitelisted element.
Since GES relies on BP's activity content, that is why
pre tags do not show up.
If we want to use
pre, we would need to add it to the activity KSES filter.
If we add
pre to emails, we would need to ensure that plain-text conversion works properly as well. A potential issue here is with the email line-wrap limit in email clients. If someone is using
pre with a long line character count, the content could look incorrect, but I guess that is relatively a minor thing.