-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
[transformation] alt text with both single and double quotes has double-escaped double quotes #112
Comments
The reason this is not working is because we find the attributes curly brace and then take those attributes, insert them into an HTML block so that we can use {xml2}'s HTML parsing capabilities to extract the alt text in Lines 80 to 98 in e815ea1
The problem is that because we are going from XML -> HTML, the quotes are already escaped in the XML, so they look like normal quotes in HTML, which causes it to truncate on the attributes. One solution is to rewrite this so that we search for the boundaries between elements (e.g. splitting on |
Created on 2023-03-28 with reprex v2.0.2
The text was updated successfully, but these errors were encountered: