SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    exit();
    Join Date
    Jul 2000
    Posts
    759
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have the following line in a script:

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">code/font><HR><pre>
    $content = addslashes($content);
    [/code]

    How can I combine the nl2br() fuction to this?

    Thanks...

    ------------------
    ICQ Me! (73902680)

  2. #2
    SitePoint Evangelist
    Join Date
    May 2000
    Location
    Canada
    Posts
    533
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    $content = nl2br(addslashes($content));

    ------------------
    SitePoint Moderator
    my ONLY host

  3. #3
    exit();
    Join Date
    Jul 2000
    Posts
    759
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh, so that is how you do it!

    If I wanted to do something else like:

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">code/font><HR><pre>
    $content = something(nl2br(addslashes($content)));
    [/code]

    Would that work?

    ------------------
    ICQ Me! (73902680)

  4. #4
    SitePoint Evangelist
    Join Date
    May 2000
    Location
    Canada
    Posts
    533
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, it sure would !


  5. #5
    exit();
    Join Date
    Jul 2000
    Posts
    759
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you!

    ------------------
    ICQ Me! (73902680)


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •