Permalink
Browse files

expose pre-parsed static form html

  • Loading branch information...
1 parent 041609a commit d6ec1acd5e9a24c393257ddb97ebb9ba84fc4ff5 @CaptainN CaptainN committed Dec 21, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 OnceForm.php
View
@@ -38,6 +38,8 @@ class OnceForm
public $validators = array();
public $data = array();
+ public $form_html;
+
public $form;
public $doc;
@@ -103,6 +105,8 @@ public function add_form_func( $func )
*/
public function parse_form( $html )
{
+ $this->form_html = $html;
+
$encoding = mb_detect_encoding( $html );
$this->doc = new DOMDocument( '', $encoding );

0 comments on commit d6ec1ac

Please sign in to comment.