Skip to content

Fix handling of quotes in SVG.#232

Open
bawolff wants to merge 1 commit intodanmichaelo:mainfrom
bawolff:SVGQuoteFix
Open

Fix handling of quotes in SVG.#232
bawolff wants to merge 1 commit intodanmichaelo:mainfrom
bawolff:SVGQuoteFix

Conversation

@bawolff
Copy link
Contributor

@bawolff bawolff commented Aug 14, 2025

PHP is confusing. I assumed that htmlspecialchars( $foo, ENT_XML1 ) would escape quote characters, but turns out you also need to provide | ENT_QUOTES.

An example file where this causes a problem is
File:Parkinsons-disease-prevalence-ihme,World,2021.svg on commons.

PHP is confusing. I assumed that htmlspecialchars( $foo, ENT_XML1 )
would escape quote characters, but turns out you also need to
provide | ENT_QUOTES.

An example file where this causes a problem is
File:Parkinsons-disease-prevalence-ihme,World,2021.svg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant