Ze Kalanga
New member
I want to take from a MySQL database a text and put it with PHP in HTML syntaxes.
The problem is that if I use ~echo $string;~ will not appear spaces and indentations, because that is the way how HTML works. If I use ~echo "<pre>".$string."</pre>";~ I am getting spaces and indentations, but I am loosing the HTML codes from string.
Does anybody know a way to not lose HTML codes from string and also to have spaces?
Thank you very much.
And I'm sorry for my language, I'm not a native English speaker.
The problem is that if I use ~echo $string;~ will not appear spaces and indentations, because that is the way how HTML works. If I use ~echo "<pre>".$string."</pre>";~ I am getting spaces and indentations, but I am loosing the HTML codes from string.
Does anybody know a way to not lose HTML codes from string and also to have spaces?
Thank you very much.
And I'm sorry for my language, I'm not a native English speaker.