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]
Did you know?Explore Trending and Topic pages for more stories like this.
<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

Warning message
I've put a website that I was doing live and I'm getting this warning message when I try to add a ne

PHP and SMS
Hi all forum members. I am new here and am unsure what category shoild I post this in.
Moderator

Specific name typed, specific image shown on html page
Hello,

Fairly new to PHP and was curious if someone might know how to solve a fairly simple r

Set Categories
I am creating a submission form for somebody to come in and submit products. These products are sep

Validating time
Hi Guys

what do you think of the following approach to validate a 24hour time:

http://

ME54/ME54N Conditional check for Release of PR
Hi Gurus,

My requirement is to put a check on the release of the PR with respect to the c

Page not Loading After Test
Hey All

It seemed that an inlcude statement wasn't working for some reason, so I tried a more

Read from forum
Haven't written anything forever and I would like to get back.
What I'm trying to do is getting t

delete comma
HI,

How to delete "," at the end of the string.
Code: $match = 2009/02/03/a2corr

IP Based Cron Jobs
I run cronjobs on my website. After one of my visitors got curious and tinkered around he realized h

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