code: public static String simplifySingleParagraph(String html) {
          html = html.trim();
          String upper = html.toUpperCase();
          if ( upper.startsWith("<P>") ) {
              html = html.substring(3);
          }
          if ( upper.endsWith("</P>") ) {
              html = html.substring(0, html.length() - 4);
          }
          return html;
      }
docs: Removes the `<p>` tag if the given HTML contains only one paragraph.
  
  **Note:** This implementation may be a bit simplistic: If the HTML starts with a
  `<p>` tag, it will be removed. If it ends with `</p>`, this one will be removed,
  too. In 99% of the cases, this *exactly* what we wanted. It some special cases,
  the result may be invalid HTML -- it should never break things, however, because
  HTML is designed to handle "forgotten" tags gracefully.
  
  @return The HTML without leading `<p>` or trailing `</p>`.