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

image upload script not working with png
The basic process of this php code is to take the submitted file, convert it to a small JPG thumbnai

php slowing my site?
Hi all,

I think that one of the reasons that my site doesn't work fast is that the code is ve

Track downloads' status
Hello,

I need to make somehow, some system, to track whether downloads are completed or faile

While Problem
i am having a problem with a while statement here is the code
Code: [Select]<?php
sess

HeaderSelectedCssClass not working
I have an accordian where I have a drop down list in the first pane and a grid in the second pane.

Help with form post data and arrays
Hi all,

I am new to this forum... It has been awhile since i have worked with arrays, and i a

User registration and login
I don't know whether this is the correct forum, if not i apologise but am pretty desperate at the mo

Security Exception on pages using AJAX
I am getting the exception: attempted to perform an operation not allowed by the security policy on

Alternate messaging
I have 4 strings in MySQL db1

$string1 : Hello
$string2 : Hi
$string3 : Great
$strin

update 2 columns by doing inner 2-column query
Hi,
is something like this possible?

update contract_all set col1,col2 =
(

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