SO i am having issue with extracting values from a security advisory, a section is as below
<ul>
<li>
ABC
<ul>
<li>
XYZ
</li>
<li>
PQR
</li>
when i do a find_all on li and iterate and print it i get
ABCXYZPQR
XYZ
PQR
instead of what i want to get is
ABC
XYZ
PQR
i understand this is happening because the li for ABC is not closed so it is reading the whole sublist
what i am unble to figure out is how do i extract just ABC, there is not way to split it also post converting it to string because there is no common thing to split it on