Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-39484

FormattedText.processFormattedText should allow the programmer to control the processing of anchor tags

    XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: CLOSED
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Kernel
    • Labels:
      None
    • Previous Issue Keys:
      SAK-15496, KNL-397

      Description

      Currently, the processFormattedText method in FormattedText sanitizes all anchor tags by taking out every attribute except href and adding target="_blank". This prevents the user from using the target tag in any other way than _blank.

      Sometimes I like to use the procesFormattedText method without introducing target="_blank". For these circumstances I suggest that the processFormattedText method be overloaded with a version that includes a boolean processAnchors, that switches this behavior on and off.

      I will attach a patch (against 2.5.x) that does just that.

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  k1team KERNEL TEAM (Inactive)
                  Reporter:
                  maarten@edia.nl Maarten van Hoof (Inactive)
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration