A little more research suggests that ">" will be "&gt;" (greater than) and "<" will be "&lt;" (less than). So I'm guessing that "<" and ">" in quoted strings won't be a problem.

What will be a problem is turning "&gt;" back into ">", and all the other de-escaping that the htmlText approach takes care of. I guess that there is a table of these things somewhere out there, so we'd need a function that uses such a table to make sure all our non-tag content is ok.

Other than that, the original function, with Mark Wieder and Jim Aults additions should handle many simple cases.

Best,

Mark

On 8 Sep 2006, at 20:07, Mark Smith wrote:

To reveal yet more of my ignorance, is it likely (certain?) that "<" and ">" that are not tag-ends will be urlEncoded (%3C and %3E, I think)?

Best,

Mark

On 8 Sep 2006, at 18:18, Richard Gaskin wrote:

For example, how does it account for "<" and ">" which may appear in quoted strings or comments?


_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to