mirror of
https://github.com/msva/lua-htmlparser.git
synced 2024-11-04 23:34:20 +00:00
Allow omitting / at the end of a void element
This commit is contained in:
parent
b58383affe
commit
3ec1a7c097
@ -19,8 +19,11 @@
|
||||
</ol>
|
||||
<h1>Acknowledgements</h1>
|
||||
<p>
|
||||
Surely, we could not have done this huge amount of work all by ourselves.<br />
|
||||
Therefore, we cannot thank enough the following persons for their kind contributions:
|
||||
Surely,<br>
|
||||
we could not have done this huge amount of work all by ourselves.<br/>
|
||||
Therefore,<br >
|
||||
we cannot thank enough the following persons<br />
|
||||
for their kind contributions:
|
||||
<!--
|
||||
Of course, the text in this paragraph only serve presentation purposes, i.e. it's not actually part of the machine-consumable structured data that this API is serving.
|
||||
-->
|
||||
|
@ -27,7 +27,7 @@ local function parse(text)
|
||||
"(=?)" .. -- eq = the optional; "=", else ""
|
||||
"(['\"]?)", -- quote = an optional "'" or '"' following the "=", or ""
|
||||
apos)
|
||||
if not k or k == "/>" then break end
|
||||
if not k or k == "/>" or k == ">" then break end
|
||||
if eq == "" then
|
||||
v = ""
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user