adityatelange / hugo-PaperMod

A fast, clean, responsive Hugo theme.
https://adityatelange.github.io/hugo-PaperMod/
MIT License
9.21k stars 2.51k forks source link

Improve date formatting with explicit safeHTML #1535

Open davidsvida opened 1 month ago

davidsvida commented 1 month ago

What does this PR change? What problem does it solve? This PR improves the previous fix for the date formatting issue in the development environment by explicitly using safeHTML for each metadata component. This ensures that all metadata, including the date, reading time, word count, and author, is correctly formatted and rendered without HTML entities being escaped.

Was the change discussed in an issue or in the Discussions before? This PR is related to Issue #1344, which addressed the initial problem of escaped HTML in the post metadata. This PR enhances the solution to ensure comprehensive and explicit handling of HTML content.

PR Checklist

sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud