Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

How to block only certain html code from description?

Quote Reply
How to block only certain html code from description?
Hi,

Is there a way to limit the html codes that people can enter in the description of their records?

I'd ideally like to only allow them to use <br> <i> <u> <s> <hr> <b> and maybe one or two others.

Im using Andy's New line to BR plugin so that the descripton left by people gets formatted correctly, else the descripton usually ends up being 3 paragraphs in a huge run on sentence.

Thanks,
Quote Reply
Re: [Westin] How to block only certain html code from description? In reply to
You would really be better letting them use stuff like [b] [/b] and then doing simple substitutions when showing the field as the HTML you want (i.e <b> </b>)

Then, stop them entering anything with < or > in (i.e HTML tags), and that should solve your problem.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!