Results 1 to 4 of 4

Thread: [RESOLVED] Html tags dont appear in text report

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2003
    Posts
    259

    Resolved [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?

  2. #2
    PowerPoster
    Join Date
    Sep 2003
    Location
    Edmonton, AB, Canada
    Posts
    2,629

    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.
    Like Archer? Check out some Sterling Archer quotes.

  3. #3
    Lively Member
    Join Date
    Feb 2008
    Location
    Denmark
    Posts
    113

    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)
    PHP: ClassDB

    VB6:
    Own code: Google Translater

    Over and out from Snortop!!

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2003
    Posts
    259

    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
  •  



Click Here to Expand Forum to Full Width