public static String replaceImgWithAlt ( String html ) { Matcher m = IMG_ALT_TITLE_PATTERN . matcher ( html ) ; if ( m . find ( ) ) { return m . replaceAll ( " $1 " ) ; } return html ; }
Replaces the img tags with their alt text .