| 51 | | return $editor->toHTML(); |
|---|
| | 51 | |
|---|
| | 52 | // tom@punkave.com: |
|---|
| | 53 | // Symfony contains an unfortunate "fix" to enable the old |
|---|
| | 54 | // Symfony 1.0 fillin helper to see the linked hidden field as a |
|---|
| | 55 | // type="text" field. This breaks any text with newlines in it in |
|---|
| | 56 | // Safari and Chrome. Un-fix the fix until this gets corrected |
|---|
| | 57 | // in an official Symfony 1.2 release. |
|---|
| | 58 | // http://trac.symfony-project.com/ticket/732 |
|---|
| | 59 | |
|---|
| | 60 | $result = $editor->toHTML(); |
|---|
| | 61 | $result = preg_replace('/type="text"/', 'type="hidden"', |
|---|
| | 62 | $result, 1); |
|---|
| | 63 | return $result; |
|---|