<form>
  <font class="tablebodytext">
    <p>текст</p>
    <input type="submit" value="Оплатить" name="BuyButton">
  </font>
</form>
<script>
  window.onload = function () {
    var allfont = document.querySelectorAll("font.tablebodytext");
    var len = allfont.length;
    var el = null;
    if (len) {
      while (len--) {
        el = allfont[len];
        el.outerHTML = el.innerHTML;
      }
    }
  }
</script>