AW: HTML issue
Thomas Fischer
fischer at mail.sub.uni-goettingen.de
Fri Nov 18 02:04:54 EST 2005
Hello,
I was thinking along similar lines as Alex:
>
> Basically what you are doing is
> a set of "replace"s to hide html tags
> the real replace
> a set of "replace"s to restore the html tags.
>
My procedure would be:
put numToChar(3) into sep
replace ">" with "<" & sep in tText
set the itemDelimiter to "<"
repeat for each item theItem in tText
if char 1 of theItem is sep then
-- do the actual replacement
replace pFind with "<font color=" & \
quote & the uPatternColor of this stack & quote & \
">" & pFind & "</font>" in tText
end if
end repeat
replace "<" & sep with ">" in tText
set the itemDelimiter to comma
I didn't test for speed though.
All the best
Thomas
--
Thomas Fischer
Salzburg
More information about the use-livecode
mailing list