Menu

#3 index out of range on unclosed end tag at end of string

open
nobody
None
5
2006-08-29
2006-08-29
No

I am using XHTMLTranscoder 1.0.007.

I have some malformed html of the form:

<p>Foo</

XHTMLTranscoding of this results in a "string index out
of range" exception in XHTMLTranscoder line 284.

My temporary fix is to place the "get tag name" 'while'
loop in to an 'if((i+1) <= code_to_clean.length()) {}'
block.

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.