Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow generating inline SVG code #88

Open
MatTheCat opened this issue Nov 12, 2024 · 0 comments
Open

Allow generating inline SVG code #88

MatTheCat opened this issue Nov 12, 2024 · 0 comments

Comments

@MatTheCat
Copy link

MatTheCat commented Nov 12, 2024

Type::getSvgCode returns a DTD (which is discouraged) and an XML declaration which are fine for a standalone files, but not for inlining.

Changing Type::getSvgCode signature to public function getSvgCode(bool $xmlDeclaration = true, bool $dtd = true): string would keep BC and allow to generate SVG code for all use-cases.

@MatTheCat MatTheCat changed the title Generate inline SVG code Allow generating inline SVG code Nov 12, 2024
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

No branches or pull requests

1 participant