SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2006
    Posts
    72
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Text displaying problem. Please help.

    In Tiny_mce editor, i write the following 2 lines [Hello World in red color ]

    Hello World

    Concrete/steel 13mm(1/2")

    After clicking Submit button in the next page when i echo it shows:

    Hello World

    Concrete/steel 13mm(1/2\")

    The red color does not show.
    Can anyone help me how can i see the same output as i inputed?

  2. #2
    SitePoint Wizard lorenw's Avatar
    Join Date
    Feb 2005
    Location
    was rainy Oregon now sunny Florida
    Posts
    1,100
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    you could do
    PHP Code:
    $text str_replace('\', "", $text);
    or
    $text = preg_replace("[\x5c\]","",$text); 
    when echoing out your text.
    Magic quotes is the culprit.
    What I lack in acuracy I make up for in misteaks


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
  •