PDF Generation for Products with Special Characters in Brand Names
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Start in seeddata/DataGenerator/Generators/ManualPdfConverter.cs at the FooterHtml property, then inspect the product generation prompt and reproduce a PDF using a brand name containing characters such as &. Confirm the chosen permanent approach preserves those characters correctly in the generated PDF and does not require the temporary replacement.
Written by the indexing model from the issue text.
Description
I encountered an issue while generating PDFs where some product brand names include special characters like &. To temporarily resolve this, I used .Replace("&", "& ;") in the FooterHtml property of Markdown2PdfOptions.
For a permanent fix, we can:
Update the Prompt: Adjust the product generation prompt to avoid names with special characters.
Use WebUtility.HtmlEncode: Automatically escape special characters (e.g., &, <, >) using WebUtility.HtmlEncode to handle them correctly in XML/HTML contexts.
- Dominant language
- JavaScript
- Stars
- 658
- Forks
- 189
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from dotnet/eShopSupport
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
dotnet/eShopSupport#62 · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
dotnet/eShopSupport#51 ·
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
dotnet/eShopSupport#50 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
dotnet/eShopSupport#47 · 2 reactions ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
dotnet/eShopSupport#44 · 2 comments · 1 reaction ·
All issues in dotnet/eShopSupport
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
antfu-collective/icones#398 ·
-
ECmail.com Open
Difficulty 1/5 Under an hour Newbie friendliness 90/100
wesbos/burner-email-providers#554 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
radiantearth/stac-browser#1023 ·
-
HMR stops working Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
components-web-app/docs#92 ·