Disable html within defined tags


Posted on 16th Feb 2014 07:03 pm by admin

I have a mysql database that allows users to enter content with html, but I also want to have a tag that will disable the html between it for example:

<a href="a.html">a</a>
[nohtml]
<a href="b.html">b</a>
[/nohtml]

Thus it should look like after formatting:
a
<a href="b.html">b</a>

How would I go about doing this?

102 Like 54 Dislike
Previous php-forum Next php-forum
Other php-forum

How to convert this array to string
I am having problems converting this array to a string
using print_r($val[1]); I get:
Code: [

Help a newbee save my job !
Hey guys i am dying here i am new to php and would like for someone to help me with this problem

Weird Problem with curl while sending data
I am facing a weird problem with sending data to a site via curl.

If i send the value by this

Issue Parsing XML into table
Hello all,

Im a bit new to php and new to phpfreaks. But thanks in advance for the help!
<

Apple's revamped lineup arrives

I'm personally curious about the magic mouse.. a multi-touch concept sounds like it could be nea

php + mysql count consecutive data
I have a database of values and I want to work out how to display them if the values match a consecu

simple php table loop
Hi all,

I've the following code

<?php // Create category options

gmdate() - want 1 hr before time
Hi,
I am using php gmdate().
Now I am entering all dates in my dbase using gmdate("Y-m-d

Will this protect from mysql injection?
I do not want anything like DROP TABLE to work or any type of coding..

Heres my code.. is it

modifying a property of an object from a different class
I have 2 classes:
- Math
- Distance

in my math class, I have this line:
$distance =

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash