Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-66484

Replace some HTML tags by keywords in the last message of conversations

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 3.7.1
    • Fix Version/s: None
    • Component/s: Messages
    • Labels:
      None
    • Affected Branches:
      MOODLE_37_STABLE

      Description

      Today I sent an emoticon to a conversation. When viewing that conversation in the list of conversations, the last message was:

      <img class="icon emoticon" alt="...

      A regular user won't understand why his emoticon is displayed like that in the list of conversations.

      One possible solution is to replace some HTML tags by a certain keyword. E.g. we could replace all <img> with the word "Image" (preferably in bold), to achieve a behaviour similar to WhatsApp. The main difference is that WhatsApp images are alone, while we can have images in the middle of a text. The same could be done with videos, links, etc.

      Another option is to display the image description instead of the <img> tag. In the emoji example above, the user would see "smiley".

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              dpalou Dani Palou
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: