SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist
    Join Date
    Mar 2011
    Posts
    423
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    <div class=\"richtext3\"><p> THIS IS WORKING BUT IS IT WRONG?

    Hi there,

    I have designed a form that submits data to PHPMyAdmin table.

    When I enter this code:

    PHP Code:
    <div class="richtext3"><p
    then I log in to PHPMyAdmin it then is coded like this:

    PHP Code:
    <div class=\"richtext3\"><p> 
    When I then load the page in a browser it looks fine with the correct formatting. When I click "source" to view the source code it is written like this:

    PHP Code:
    <div class=\"richtext3\"><p> 
    My question is, should I manually delete these \ or not?

    May be you know why it adds these \? do you keep them or delete them?!

    Matt.

  2. #2
    SitePoint Enthusiast Adam Chrapkowski's Avatar
    Join Date
    Sep 2011
    Location
    Poland
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It is not possible, how the code is inserted into the databae. I looks like double string escaping bug.


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
  •