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

Used html module to unescape html characters #194

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Blackmamoth
Copy link

@Blackmamoth Blackmamoth commented Jun 4, 2023

Related Issue

While displaying question titles in the panel, if the question contained and some character like '"' (double quote) it was displayed as its corresponding html escape character which is '"' which didn't seem human readable at all if there multiple html escape characters in a title.

Closes: #184

Describe the changes you've made

I created a function which uses the built in html module to unescape those characters from that particular title.

Checklist:

  • My code follows the style guidelines of this project.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • My changes generate no new warnings.

Screenshots

Input string: ' vs " in c

Original Updated
image image

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉Congratulations!!🎉 for making your first PR , our mentors will review it soon.

@Blackmamoth Blackmamoth changed the title Wrote a function to replace html escape characters in question titles to their corresponding ascii characters Wrote a function to unescape html escape characters in question titles to their corresponding ascii characters Jun 4, 2023
dynamic/utility.py Fixed Show fixed Hide fixed
dynamic/utility.py Fixed Show fixed Hide fixed
dynamic/utility.py Fixed Show fixed Hide fixed
dynamic/utility.py Fixed Show fixed Hide fixed
dynamic/utility.py Fixed Show fixed Hide fixed
dynamic/utility.py Fixed Show fixed Hide fixed
dynamic/utility.py Fixed Show fixed Hide fixed
dynamic/utility.py Fixed Show fixed Hide fixed
dynamic/utility.py Fixed Show fixed Hide fixed
dynamic/utility.py Fixed Show fixed Hide fixed
dynamic/utility.py Fixed Show fixed Hide fixed
dynamic/utility.py Fixed Show fixed Hide fixed
dynamic/utility.py Fixed Show fixed Hide fixed
@sonarcloud
Copy link

sonarcloud bot commented Jun 8, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@Blackmamoth Blackmamoth changed the title Wrote a function to unescape html escape characters in question titles to their corresponding ascii characters Made use html module to unescape html characters Jun 8, 2023
@Blackmamoth Blackmamoth changed the title Made use html module to unescape html characters Made use of html module to unescape html characters Jun 8, 2023
@Blackmamoth Blackmamoth changed the title Made use of html module to unescape html characters Used html module to unescape html characters Jun 8, 2023
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.

Replace HTML escape codes with corresponding ASCII character
1 participant