[RESOLVED] Html tags dont appear in text report
I have a report that i simply echo a mysql text field with no special formatting and i had <DIV> along with some other txt and the tag didnt appear on the report but the other code did. im not trying to do any formatting with the html tag it was just part of the sentence in the field. is there anyway to diplay the text without it trying to format?
Re: Html tags dont appear in text report
text in an HTML file, when displayed in a browser, is automatically parsed into HTML. if you don't want to actually let the browser parse the HTML, you need to escape it by replacing special characters (< and > mostly) with their HTML entities. you can do this automatically with PHP by using the htmlentities() function.
Re: Html tags dont appear in text report
Well im thinking if you want to dump a my_sql area of stuff.
You can do a
Code:
var_dump($variable)
Re: Html tags dont appear in text report
Kows, htmlentities worked thanks.