| 1 |
Index: util/sfFillInForm.class.php |
|---|
| 2 |
=================================================================== |
|---|
| 3 |
--- util/sfFillInForm.class.php (revision 9149) |
|---|
| 4 |
+++ util/sfFillInForm.class.php (working copy) |
|---|
| 5 |
@@ -80,6 +80,13 @@ |
|---|
| 6 |
return $dom->saveXML(); |
|---|
| 7 |
} |
|---|
| 8 |
|
|---|
| 9 |
+ public function fillInXhtml($xml, $formName, $formId, $values) |
|---|
| 10 |
+ { |
|---|
| 11 |
+ $xhtml = $this->fillInXml($xml, $formName, $formId, $values); |
|---|
| 12 |
+ $prolog_regexp = '/^' . preg_quote('<?xml version="1.0"?>') . '\s*/'; |
|---|
| 13 |
+ return preg_replace($prolog_regexp, '', $xhtml); |
|---|
| 14 |
+ } |
|---|
| 15 |
+ |
|---|
| 16 |
public function fillInDom($dom, $formName, $formId, $values) |
|---|
| 17 |
{ |
|---|
| 18 |
$xpath = new DomXPath($dom); |
|---|