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?

No comments posted yet

Your Answer:

Login to answer
102 Like 54 Dislike
Previous forums Next forums
Other forums

PHP switch function help
Hi, I am trying to create a search function for a directory website. On the search function on html

Price in PR
Dear Experts,
Why we have to enter the price in the PR, and why there is no free goods indicato

getting weird error..
okay, I'm getting an error on this particular function, something about the syntax in the mysql LIMI

ereg_replace()
Basically what i need to do is

$title = "This Suck's"

$striped = ereg_repl

Add code to enable passing of checkbox variable on login
Ok, I have a login page, but want to add a checkbox that when checked and successful login is made i

Async WSAConnect failed on XP with error code = 2 ("File not found")
Hi all,

I have very strange bug, please help me if you can.

It is reproduced o

Comparing two dates
Hi Guys
I have two dates I want to compare. Below is my current implementation. The problem with

PHP mail() rejected by SMTP
I'm currently working on a newsletter application which is installed on a windows 2003 server runnin

Problem!
I have another problem, when i run this code i get this error "Parse error: syntax error, unexp

Why use interfaces in PHP (OOP)
I am learning OOP in PHP and its been a pretty good learning experience so far. What I didn't unders

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