-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Fix/199 attr escape #222
Fix/199 attr escape #222
Conversation
Following will be escaped from now on - angle brackets - quotes - ampersands - and a mix of them too
Reviewer's Guide by SourceryThis PR implements XML attribute value escaping in the json2xml package. The implementation modifies the attribute string generation to properly escape special characters like angle brackets, quotes, and ampersands in XML attributes. Class diagram for updated make_attrstring functionclassDiagram
class DictToXml {
+make_attrstring(attr: dict[str, Any]) str
}
class EscapeUtils {
+escape_xml(value: str) str
}
DictToXml --> EscapeUtils : uses
File-Level Changes
Assessment against linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
❌ 4 Tests Failed:
View the top 3 failed tests by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @vinitkumar - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Fixes #199
Summary by Sourcery
Fix attribute escaping in XML conversion to handle special characters and add corresponding tests to ensure correct functionality.
Bug Fixes:
Tests: