- I got my data from database as like zkjxhvzkjxcvhnzxv"""!^!^!
- used dd() for double check if i can get the data from database (i can)
- The problem is output i can see is as following in my html: zkjxhvzkjxcvhnzxv
- After the character " i can't implement the value into my html element, including "
Here are my codes :
$value = "zkjxhvzkjxcvhnzxv"""!^!^!";
$html = new simple_html_dom();
$html->load('<input type="text" value="'.$value.'">');
echo $html;
A second way to do it but nothing has changed :
$value = "zkjxhvzkjxcvhnzxv"""!^!^!";
$html = new simple_html_dom();
$html->load('<input type="text" id='myID'>');
$input = $html->getElementById('myID');
$input->setAttribute("value", $value);
echo $html;
Thanks in advance.