michael-milette / moodle-filter_filtercodes

FilterCodes filter for Moodle enables content creators to easily customize and personalize course and site content using plain text tags (no HTML). For premium support, contact us at https://www.tngconsulting.ca/contact
https://moodle.org/plugins/filter_filtercodes
GNU General Public License v3.0
32 stars 43 forks source link

Bug: FilterCodes FontAwesome conflict with Activity name auto linking (core) #248

Closed joostelshoff closed 1 year ago

joostelshoff commented 1 year ago

Prerequisites

What happened?

When using a {fa fa-clock-o fa-lg} code (or any of the FontAwesome icons with a -o addition), the filter breaks these into unreadable HTML if you use activity names auto linking filter in addition to the FilterCodes filter.

What do you think should have happened?

All FontAwesome icons should be displayed properly, regardless if they contain the -o suffix like fa fa-clock-o

Steps to reproduce

  1. Login as '...' (specify user role)
  2. Go to '...'
  3. Click on '....'
  4. Scroll down to '....'
  5. See error or issue. You get it?

Screenshots

Create a course Create a label containing the {fa fa-clock-o fa-lg} icon code and save Enable FilterCodes filter in the course and check to see if the code converts to the correct icon Enable Activity name auto linking filter in the course and check to see if the code is now broken

Moodle version

Moodle 3.11

Installed Moodle UI Language packs.

If other language(s), please specify

NL, ES, DE, FR

Workaround

Use tags around the affected icons. This is quite labour intensive, though.

Additional information

No response

System information

Client Device type: Laptop Client Operating System: Windows 11, Mac OS Ventura Client Web Browser: Edge, Firefox for Mac Server Operating System: (e.g. Windows, Linux, Mac OS, Other - specify) Server Webserver: (e.g. Apache, Nginx, IIS, Other - specify) Server PHP: (e.g. 7.3, 7.4, 8.x, Other - specify)

Code of Conduct

michael-milette commented 1 year ago

Hi @joostelshoff ,

Thank you for reporting this issue. I will definitely look into this and get back to you.

Best regards,

Michael

michael-milette commented 1 year ago

Hi @joostelshoff ,

I followed your instructions on multiple versions of Moodle 3.x and 4.x including 3.11. There must be more to your instructions because I am unable to reproduce the issue you are experiencing.

image

Best regards,

Michael Milette

michael-milette commented 1 year ago

There has been no further response to the request for additional details in this ticket for over 2 months. I am therefore closing it for now. If you would like to resume working on it with me, please feel free to re-open the issue ticket.

Best regards,

Michael