Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-15335

editor.js: remove all html elements in "theSelection"

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 3.2.1
    • JavaScript / AJAX

      Please add the following line to remove all html elements in "theSelection":
      theSelection = theSelection.replace(/<[^>]*>/ig, '');
      (please add it on line 207)

      The reason is that you have a big problem if you use a javascript library which will replace your links.
      In my case does a meta network rewrite my links.
      The function doesn't work correctly anymore (you have html in the quoted message) because html are automatically inserted (all links will be rewritten -> also in the hidden message_element).

            Unassigned Unassigned
            bvetter bvetter [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: