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

Object Interfaces
EDIT: Never mind, I just updated to php 5.

Hey all,

I'm currently experimenting with p

Hit counter updating once per IP - IP HIT COUNTER
I have a hit counter, for the amount of views on a tutorial.
It'll do the query and then do..

Do not allow posting of whitespace
Currently the script below works if the user does not type a name/message, but if i create a whitesp

Help with file_get_html
The following code gives the expected results:

<html>
<head&g

Problem with php's rename function
So, i'm having a problem with the php rename function. Basically my script 'delete_user.php' attempt

check if value exists
I have googled this for a while and I am getting lots of different results. Is there a standard meth

php global variable
how can we create global variable so we can use its value in any form.. Please give example to

Need help-Error istream header declaration
Hi Everyone ,

I am having issue with istream declaration. I am new to C programming.
can a

Displaying image pathname instead of image
Hello

Im trying to upload and then display images from a mysql database - Its only basic and

building a function with multiple outputs
I want to build a function that has multiple outputs.

I know but am not to sure how I should

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