gocodebox / gocodebox/lifterlms

Dash displayed as HTML entity number when awarding a certificate

Open
#2,105 1 comment 0 reactions 0 assignees View on GitHub
Severity: Low Type: Bug
Dominant language
PHP
Stars
212
Forks
140
Avg merge
2d 14h
Merged PRs (30d)
19

Description

### Reproduction Steps

1. Go to "LifterLMS -> Certificates" and add a certificate template named `en dash - HTML entity number 8211`.
2. Go to " LifterLMS -> Awarded Certificates" and click the "Award Certificate" button.
3. Search for the template created in step 1.

### Expected Behavior

The `-` character should be displayed.

### Actual Behavior

The `-` character is displayed as `–`.
![image](https://user-images.githubusercontent.com/5377968/162451843-d8a3ad98-ff87-49c5-9ea3-66d47b1df816.png)

### System and Environment Information

LifterLMS 6.3.0
WordPress 5.9.1-src
PHP 8.0
Windows 10

This issue has be recreated:
+ [x] Locally
+ [ ] On a staging site
+ [ ] On a production website
+ [ ] With only LifterLMS and a default theme

### Browser, Device, and Operating System Information

Brave

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue in the LifterLMS Certificates and Awarded Certificates screens using the documented template name, then inspect the certificate-template search and display flow. Done means the en dash appears as the character itself rather than the HTML entity number when awarding a certificate.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.