htmly icon indicating copy to clipboard operation
htmly copied to clipboard

Improve HTML entity handling in meta tag generation

Open KuJoe opened this issue 3 months ago • 1 comments

Enhanced the escaping and decoding of HTML entities for meta tag content in head_contents() and generate_meta() functions. This ensures that apostrophes and similar entities are consistently converted to single quotes, improving the accuracy and readability of generated meta tags.

This prevents website previews/embeds from showing things like don't and can't instead of don't and can't.

KuJoe avatar Oct 01 '25 06:10 KuJoe

Hi,

Is this tested again some funny string for description/title eg. < > or quote etc.? sometimes users add This is "me" as blog title/description etc. or this is 'cool' just in case some html code added to the title / description.

danpros avatar Oct 01 '25 11:10 danpros