Jump to content

How to store HTML like content in forums?


vikram8jp

Recommended Posts

Hello all,

 

I am developing a small Q&A forum for my website. I was wondering how do you generally store HTML content in mysql with application developed in PHP.

Like for the forums which allow the rich-text formatting tools like the one I am typing my question in right now ( bless phpfreaks), how do you store HTML in database?

 

1. I guess they use the BBCode most of the times.

 

2. If we store the BBCoded data in database as it is. Like for example I enter the text like for example,

 

[html]hello[/html]

 

If this is stored as it is, and then I want to implement a search functionality and I enter the word "html", it will display this post. But it shouldn't, right?

 

What's your opinion guys.... it would be very helpful if I get to know the techniques used generally.

 

Thanks and Regards

Vikram

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.