Fixed CMS_HTML_FILTER which was buggy and was including the last processed tag even if it was excluded.

This commit is contained in:
Jocelyn Fiat
2013-03-08 15:49:25 +01:00
parent 617c48adcb
commit 58adb7ff88

View File

@@ -45,6 +45,7 @@ feature -- Conversion
i: INTEGER i: INTEGER
n: INTEGER n: INTEGER
in_tag: BOOLEAN in_tag: BOOLEAN
t: READABLE_STRING_8
p1, p2: INTEGER p1, p2: INTEGER
do do
create l_new.make (a_text.count) create l_new.make (a_text.count)
@@ -75,7 +76,9 @@ feature -- Conversion
else else
i := a_text.index_of ('<', p2 + 1) i := a_text.index_of ('<', p2 + 1)
end end
if i > 0 then if i = 0 then
p1 := p2 + 1
else
l_new.append (a_text.substring (p2 + 1, i - 1)) l_new.append (a_text.substring (p2 + 1, i - 1))
end end
end end