You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: