Index: util/util-util/util/src/java/org/sakaiproject/util/FormattedText.java =================================================================== --- util/util-util/util/src/java/org/sakaiproject/util/FormattedText.java (revision 38055) +++ util/util-util/util/src/java/org/sakaiproject/util/FormattedText.java (working copy) @@ -172,6 +172,20 @@ Pattern.CASE_INSENSITIVE | Pattern.DOTALL); /** + * @see #processFormattedText(String, StringBuilder) + * @deprecated since Nov 2007, use {@link + #processFormattedText(String, StringBuilder)} instead + */ + public static String processFormattedText(final String strFromBrowser, + StringBuffer errorMessages) { + StringBuilder sb = new StringBuilder(errorMessages.toString()); + String fixed = processFormattedText(strFromBrowser, sb); + errorMessages.setLength(0); + errorMessages.append(sb.toString()); + return fixed; + } + + /** * Processes and validates user-entered HTML received from the web browser (from the WYSIWYG editor). Validates that the user input follows the Sakai formatted text specification; disallows dangerous stuff such as <SCRIPT> JavaScript tags. * Encodes the text according to the formatted text specification, for the rest of the system to use. *