Let the string tool restrict html.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1639 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -105,6 +105,14 @@ public class StringTool
|
||||
return StringUtil.truncate(text, length, append);
|
||||
}
|
||||
|
||||
/**
|
||||
* Restrict all HTML from the specified String.
|
||||
*/
|
||||
public static String restrictHTML (String text)
|
||||
{
|
||||
return StringUtil.restrictHTML(text);
|
||||
}
|
||||
|
||||
/** For formatting percentages. */
|
||||
protected NumberFormat _percFormat;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user