Nexus-Mods / Nexus-Mod-Manager

GNU General Public License v2.0
989 stars 165 forks source link

HTML parsing of mod descriptions needs improvement #1242

Open glennglazer opened 2 years ago

glennglazer commented 2 years ago

Describe the bug

Frequently, when I look at an About This Mod listing in NMM, I see escape characters, unprocessed HTML entities and raw markup with the angle brackets converted to square brackets. A small set of examples in what appears to be a widespread problem is below. While these all happen to be Morrowind mods, the problem is not limited to Morrowind and I've seen it in most or all game mods.

Idle Talk mod: web: Greetings: NMM: [b][size=3]Greetings[/size][/b]

Better Almalexia mod single escaping: web: AnOldFriend's Better Bodies NMM: AnOldFriend\'s Better Bodies

Real Signposts mod double escaping: web: What's This? NMM: What\'s This?

Passive Cliff Racers mod: web: The blighted version was unchanged as I didn't think it'd make much sense for a blighted creature to not be completely out of its mind. NMM: The blighted version was unchanged as I didn&#39,t think i&#39,d make much sense for a blighted creature to not be completely out of its mind.

As side note, it would have been helpful if text in the NMM side pane was copy/paste-able.

Environment

No logs.

To Reproduce Download one of the above mods or one of many others. Compare the NMM description pane to the description text on Nexus Mods.

Additional information image

as an example of NMM for Passive Cliff Racers