|
-
Nov 3rd, 2010, 09:04 PM
#1
Thread Starter
Hyperactive Member
[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?
-
Nov 3rd, 2010, 10:11 PM
#2
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.
-
Nov 4th, 2010, 03:28 AM
#3
Lively Member
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)
-
Nov 4th, 2010, 05:03 AM
#4
Thread Starter
Hyperactive Member
Re: Html tags dont appear in text report
Kows, htmlentities worked thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|