From: mh Date: Wed, 27 Mar 2002 13:21:43 +0000 (+0000) Subject: source/mir/media/MirMedia.java X-Git-Tag: prexmlproducerconfig~223 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=d6931e16f79f3a98c735e6d49ac689d0d49f9477;p=mir.git source/mir/media/MirMedia.java --- diff --git a/source/mir/misc/StringUtil.java b/source/mir/misc/StringUtil.java index 24de3ab6..a9a9a36b 100755 --- a/source/mir/misc/StringUtil.java +++ b/source/mir/misc/StringUtil.java @@ -980,38 +980,6 @@ public final class StringUtil { return createURLLinks(haystack, title, imageRoot, extImage); } - /** - * this routine takes text in url format and makes - * an image link removing any "illegal" html tags - * @param haystack, the url - * @param title, the image alt text, can be null - * @param height, height of the image - * @param width, width of the image - * @return a String containing the url - */ - public static String createIMGLinks(String haystack, String title, - String height,String width) { - String wh=""; - if ( (height != null) && (width != null) ) - { - wh = "width=\""+width+"\" height=\""+height+"\""; - } - if (title != null) { - title = removeHTMLTags(title); - return re_url.substituteAll(haystack, - "\""+title+"\"/ 
"+ - title+""); - } else { - return re_url.substituteAll(haystack, - "\"\"/ "); - } - } - - /** * deleteForbiddenTags * this method deletes all