BerndGabriel / HtmlViewer

The well-known Delphi/Lazarus HtmlViewer/FrameViewer
Other
398 stars 147 forks source link

Incorrect parsing of href tags #274

Closed csterg closed 4 years ago

csterg commented 4 years ago

Hello, I run a very simple test like this: h.LoadFromString('<a href="index.php?item=1&pid=49">ITEM</a>'); yet, the parsing of the & character is wrong: the href is parsed as if the &pid is an html entity. Any insight pls? Thanks

csterg commented 4 years ago

Found the problem: <html><body>&pid</body></html> loads as πd. The &pi is parsed as the html entity &pi; but it does so even if the ; is missing. Any idea where to fix this?

csterg commented 4 years ago

Is this project dead?

BerndGabriel commented 4 years ago

Thanks for spotting this issue. Commit https://github.com/BerndGabriel/HtmlViewer/commit/65dd267bacf356522fd234c813434b48fd968696 fixes it.