commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim <che...@gmail.com>
Subject Re: isEscaped
Date Wed, 03 Sep 2008 02:54:41 GMT
What is the end goal? It seems you might end up taking more time trying to
find out if it's HTML escaped then just coding for it on a usage basis.

On Tue, Sep 2, 2008 at 1:28 PM, Gabriel Reis <bielmooca@gmail.com> wrote:

> Hi,
>
> Is there any tool to verify if a String is escaped? Something like this:
>
> assertFalse( StringEscapeUtils.isHtmlEscaped("<b>text</b>") );
>
> assertTrue( StringEscapeUtils.isHtmlEscaped("&lt;b&gt;text&lt;/b&gt;")
);
>
>
> []s
> Gabriel
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message