Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-15335

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

    Details

      Description

      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).

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bvetter bvetter
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: