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 6925227
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:45:44+00:00 2026-05-27T10:45:44+00:00

I am using Codeigniter with MySQL database. What the script does is it takes

  • 0

I am using Codeigniter with MySQL database. What the script does is it takes some HTML code containing the HTML tags, insert them into the database and then retrieves the HTML code later in time.

Problem: I notice that all HTML tags, upon selecting rows from MySQL tables, are missing with the exception of <br />

Is Codeigniter/MySQL removing the HTML tags somewhere between retrieving the code, passing it from controller to model, and the model inserting the HTML code into a MySQL table column? How can I prevent it from removing HTML tags for just this specific situation?

  • 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-27T10:45:45+00:00Added an answer on May 27, 2026 at 10:45 am

    It sounds like an issue with the initial insertion via a text editor.

    Text editors insert allot of style=“anything” and the xss_clean()
    method will strip those. Use html purifier for your editor content and
    xss_clean() for all the other fields.

    Source: http://codeigniter.com/forums/viewthread/196303/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to insert current time in database using mySQL function NOW() in Codeigniter's
I am using MySQL fulltext and PHP (codeigniter) to search a database containing RSS
I'm using CodeIgniter with CodeIgniter sessions that are stored in a MySQL database. I
I'm using CodeIgniter's Active Record class to query the MySQL database. I need to
i am using codeigniter 2.1.0 and mysql database. in my admin panel i have
Using Codeigniter, any numeric data returned from my MySQL database is returned as strings.
I would like to store images in my mySQL database using the CodeIgniter PHP
I am using CodeIgniter 2.1.0 and MySQL database. I have uploaded an image through
How to get records from Excel sheet to Mysql database using Codeigniter php?
I am using CodeIgniter to pass some parameters to my PHP page through $_POST

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.