private String prepareHTMLContentForClipboard(String html){
  int start=html.indexOf("<head");
  int end=html.indexOf("</head>",start);
  if (0 < start && start < end && end < html.length())   return html.substring(0,start) + html.substring(end,html.length());
  return html;
}

private String prepareHTMLContentForClipboard ( String html ) { int start = html . indexOf ( "<head" ) ; int end = html . indexOf ( "</head>" , start ) ; if ( 0 < start && start < end && end < html . length ( ) ) return html . substring ( 0 , start ) + html . substring ( end , html . length ( ) ) ; return html ; }
cut out the head - tag from the html - content .
