Skip to content

[FIX] Preferences: Description text with pipe symbol no longer gets truncated

Nat Okpe requested to merge natokpe/tiki:fix-tra-truncates-output into master

Any preference description text that contains a pipe symbol (|) gets truncated as described here https://dev.tiki.org/item7469-Bug-or-feature-in-tra

This truncation is not done in tra() PHP function as it is reported in https://dev.tiki.org/item7469-Bug-or-feature-in-tra

The truncation was done in a jQuery code that tried to preprocess the text before being used in the popover. The code also looked out for the colon symbol (:) and the HTML tag br and would truncate the text if any of these tokens existed in it.

I placed the popover header and content texts in appropriate HTML attributes so that the preprocessing is no longer necessary and modified the jQuery code that did the parsing to ignore popovers for preferences.

@luciash

Merge request reports