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

escape ampersands in label texts that would otherwise be interpreted as special character #3941

Merged
merged 2 commits into from
Apr 22, 2024

Conversation

kimmerin
Copy link
Contributor

Hi,

as shown in https://forum.portfolio-performance.info/t/widget-gesucht-bekannte-kunftige-dividendenzahlungen/28020/4 security names containing an ampersand show up in a wrong way if they are put into a label in a dashboard widget. This PR fixes that for exceeded limits and exceeded dates.

I've added two helper methods in AbstractSecurityListWidget that is also present in my other PR #3927.

special character leading to wrong presentations of security names
@buchen
Copy link
Member

buchen commented Apr 21, 2024

Thanks for fixing those. There is already a helper method used in the other placed: (not very helpfully named) TextUtil.tooltip

@kimmerin
Copy link
Contributor Author

OK, I've changed the method in the abstract class to reuse code by calling the helper method

@buchen buchen merged commit 627284c into portfolio-performance:master Apr 22, 2024
2 checks passed
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.

2 participants