if static text, yes
if dynamic no
Show an example of your global recycleList
Post a simple test aia.
More work required by you, you would need to specify which tags to change.....
yes, need exception)
if the text is different every time and there may be several indexes, it is better to encode it back for each TAG
Ah good, you have moved from finding problems to finding solutions
It would be better to use a more general solution. In PHP you have nice functions that encode or decode html entities: this is replacing < by < and so on. In appinventor the Web component has a decode function, but what you want to have is an encode function.
Here is one:
You could use it like this:
you will find that calling the procedure will give as result:
"<text1>abc<text2>def"
and on your screen you will see: <text1>abc<text2>def
Here you have a restricted set of characters to encode: &, < and >. You could easily add more, such as " or '
Have fun with it.
You have to use <
and >
It will work.
Do it without procedures and see.
it not work, this users generic text, not static text
you cannot just use < or >.
Did not understand this part.
user send message: <hello> <b>hi</b>
Yes, this is a can-of-worms.
In HTML you are expected to escape < to < and > to >
The software that creates these <hello> messages, where hello is not a tag, should do this for you.
If this is outside your influence, then your solution is best, although you could get a very long list of HTML tags that you have to escape.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.