8/10/2018 - 7:27 PM

Form tags being removed during VE processes (Paypal)

tags are being removed by chrome due to the inability to have multiple nested forms according to html standards. These form tags are being removed because the entire textarea is wrapped in a single form element. Making any forms presented on a client page a nested form.
$(document).ready(function() {
  $(".paypalButton").each(function(index, el) {
    $(this).contents().wrap('<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top"></form>');
<div class="paypalButton">
	<input type="hidden" name="cmd" value="_s-xclick">
	<input type="hidden" name="hosted_button_id" value="XXXXXXX">
	<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
	<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">