Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7614033
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T02:18:00+00:00 2026-05-31T02:18:00+00:00

In the system I’m building I use CKEditor for writing posts. Then, when I

  • 0

In the system I’m building I use CKEditor for writing posts. Then, when I send it to PHP I validate the html created from CKEditor with HTMLPurifier. The problem is that the HTMLPurifier adds \ before “. For example, the CKEditor produces:

<span style="font-size:36px;">

And after HTMLPurifier:

<span style=\"font-size:36px;\">

I’m using PHP 5.2. Why does HTMLPurifier adds these backslashes and what must I do to fix it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T02:18:02+00:00Added an answer on May 31, 2026 at 2:18 am

    It’s not HTML purifier that adds the extra slashes, but your PHP configuration. Edit php.ini and disable magic_quotes_gpc.

    The linked manual suggests you to add the next setting to php.ini:

    magic_quotes_gpc = Off
    

    If you are using Apache and can use .htaccess files, create one with:

    php_flag magic_quotes_gpc Off
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

System: Debian Lenny/Apache 2.2/php5.3.3 compiled from sources I'm strugglying with the date.timezone within php.ini.
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
System.Threading.WaitHandle (and hence ManualResetEvent etc) implement IDisposable explicitly. This seems to discourage it's use
System A captures X information from users via UI. This information is validated and
System.out.println(s.toString().substring(0,s.indexOf(.mp3))); i am downloading file from android application.. i need to name them as
System.Diagnostics.Debug.Print([fillmake] : 1\n); Upper code display message at output window from visual studio .net
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
System: OS X 10.7.X When starting jboss from the terminal I get a bind
System.IO.Directory.GetFiles() returns a string[] . What is the default sort order for the returned
System.IO.BinaryReader reads values in a little-endian format. I have a C# application connecting to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.