Skip to content
Snippets Groups Projects
Commit 29b13874 authored by Cyril Vazquez's avatar Cyril Vazquez
Browse files

No commit message

No commit message
parent e632dc0a
No related branches found
No related tags found
No related merge requests found
...@@ -333,7 +333,7 @@ class ViewController ...@@ -333,7 +333,7 @@ class ViewController
$nodeName = $node->name; $nodeName = $node->name;
break; break;
} }
$nodeValue = (string)$node->nodeValue; $nodeValue = $node->nodeValue;
// Name of property // Name of property
$viewElement = $viewElement =
$this->getElementById( $this->getElementById(
...@@ -359,10 +359,7 @@ class ViewController ...@@ -359,10 +359,7 @@ class ViewController
function loadProperty( function loadProperty(
$viewElement, $viewElement,
$value $value
) { ) {
// Replace CR/LF by <br/>
$value = preg_replace("/(\r\n|\n|&#xD;)/", '<br/>', $value);
switch($viewElement->tagName) { switch($viewElement->tagName) {
case 'input': case 'input':
switch($viewElement->getAttribute('type')) { switch($viewElement->getAttribute('type')) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment