I Have this
$this->CompileString_ = file_get_contents("test.html");
echo $this->CompileString_;
test.html
<div>test</div>
<div>test</div>
The problem is that file_get_contents return > instead of getting <
Why ?.
I’m using wampserver 2 with php 5.3.8
Hello try renaming the file to
test.txtmaybe php automatically encodes that for .html files.Use
htmlentitydecode();