code: public static String unescapeVerbatim(String content)
      {
          StringBuffer unescapedContent = new StringBuffer();
  
          boolean escaped = false;
          char[] buff = content.toCharArray();
          for (int i = 0; i < buff.length; ++i) {
              if (!escaped) {
                  if (buff[i] == '~') {
                      escaped = true;
                      continue;
                  }
              } else {
                  if (i < (i = matchVerbatimSyntax(buff, i, '{'))) {
                      unescapedContent.append("{{{");
                      escaped = false;
                      continue;
                  } else if (i < (i = matchVerbatimSyntax(buff, i, '}'))) {
                      unescapedContent.append("}}}");
                      escaped = false;
                      continue;
                  } else {
                      unescapedContent.append('~');
                  }
  
                  escaped = false;
              }
  
              unescapedContent.append(buff[i]);
          }
  
          return unescapedContent.toString();
      }
docs: To have }}} or {{{ inside inline block we need to escape it in some
  condition. This method remove this escaping to send the correct text to
  the event.