commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gabriel Reis" <bielmo...@gmail.com>
Subject isEscaped
Date Tue, 02 Sep 2008 18:28:42 GMT
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