We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
generate_svg() failed when the input string contain '&'.
library(qrcode) qr_code("https://docs.google.com/forms/viewform?vc=0&c=0&w=1&flr=0", ecl = "H") |> generate_svg("myqrcode.svg")
Created on 2024-02-09 with reprex v2.1.0
Here is the first few lines of myqrcode.svg.
<?xml version="1.0" encoding="UTF-8" ?> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="300" width="300"> <g id="qrcode:https://docs.google.com/forms/viewform?vc=0&c=0&w=1&flr=0">
The problem seems to come from the <g id="..."> which contains '&'.
<g id="...">
The text was updated successfully, but these errors were encountered:
I can confirm the bug. I'll look for a solution. I probably need to escape the & in the < g id> element.
&
< g id>
Sorry, something went wrong.
fixes #19
bacbd69
@kaveelim can you check this version of the package?
Great!, I can confirm that it's working as expected. Thank you very much.
ThierryO
No branches or pull requests
generate_svg() failed when the input string contain '&'.
Created on 2024-02-09 with reprex v2.1.0
Here is the first few lines of myqrcode.svg.
The problem seems to come from the
<g id="...">
which contains '&'.The text was updated successfully, but these errors were encountered: