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

Allow HTML tags in the TROView fluff #4871

Merged
merged 1 commit into from
Nov 5, 2023

Conversation

SJuliez
Copy link
Member

@SJuliez SJuliez commented Nov 3, 2023

When I added HTML tag processing to the MechView a few days ago I missed handling the tags in the TRO View. Unfortunately tags get processed (auto-escaped) by the template engine so that they appear as plain text in the result. I did not want to introduce some crazy processing where I replace the tags by some artificial markup or re-engineer the auto-escaped tags. So it was either remove tags entirely before processing (making the tags ineffective in the TRO view) or removing the auto-escaping. I opted for removing the auto-escaping. It seemed to have no negative effects with " and ' characters (see Atlas AS7-D) and I don't expect < or > to appear in the fluff text which would throw the TRO view off.
This PR has no visible effect as long as no HTML tags appear in the fluff.

@HammerGS HammerGS merged commit be62c2c into MegaMek:master Nov 5, 2023
4 checks passed
@SJuliez SJuliez deleted the HTML-tags-in-TROView branch December 12, 2023 22:19
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.

3 participants