Closed (fixed)
Project:
Search API
Version:
8.x-1.x-dev
Component:
Plugins
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Sep 2023 at 14:00 UTC
Updated:
29 Oct 2023 at 09:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jlukasie commentedComment #3
drunken monkeyThanks a lot for reporting this problem.
I could reproduce it, and writing a regression test for it is also pretty simple, see attached.
However, I cannot really see where the regular expression goes wrong. Do you have a proposed fix for this problem, a regular expression that actually matched complete HTML tags even if they have attributes with values?
Comment #5
drunken monkeyMaybe just simplify the tag contents expression instead of trying to match individual attributes? I guess we used the current regular expression to avoid problems in case of invalid HTML, but should hopefully be a minor problem at this point.
Comment #6
jlukasie commentedThanks, I think You are right. The simpler expression is the better for future maintenance.
Invalid HTML should be no big problem at the moment.
Comment #8
drunken monkeyThanks for the feedback!
Committed.