Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into 0.x
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedRejeb committed Jan 5, 2024
2 parents 6b08bcd + 3714047 commit 7f4bb4a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ internal class KsoupTokenizer(
private fun stateInEntity(c: Int) {
if (c == CharCodes.Semi.code) {
val decoded = KsoupEntities.decodeHtml(
this.buffer.substring(this.entityStart, this.index + 1)
this.buffer.substring(this.entityStart - this.offset, this.index - this.offset + 1)
)

this.state = this.baseState
Expand Down Expand Up @@ -900,4 +900,4 @@ internal class KsoupTokenizer(
}
}

}
}

0 comments on commit 7f4bb4a

Please sign in to comment.