View Full Version : Only Certain HTML Allowed?
Lauren
06-26-2004, 06:28 PM
I think it'd be cool to have some certain HTML be allowed like
<img src="image here"></img>
<a href="link here">text here</a>
<b></b>
<i></i>
<u></i>
<font color etc.
Is there a module like this?
Zachery
06-26-2004, 07:55 PM
I think it'd be cool to have some certain HTML be allowed like
<img src="image here"></img>
<a href="link here">text here</a>
<b></b>
<i></i>
<u></i>
<font color etc.
Is there a module like this?
Why? all that is already done with bbcode
[img]
[url]
[b]
[i]
[u]
Andreas
06-26-2004, 08:04 PM
One way to achieve this could be to allow HTML, but before accepting the input run strip_tags() with the allowed tags.
Martin CX
06-28-2004, 10:58 PM
Why? all that is already done with bbcode
[img]
[url]
[b]
[i]
[u] Well. one reason why could be that the brackets are very impractical to type on some (most?) international keyboards. Alt Gr-8 and Alt Gr-9 is needed for brackets on my keyboard, for instance. Thus, for the users, the brackets are counter-intuitive, and difficult and slow to type. Angles, on the other hand, have their own key and need no hand contortions to use.
Zachery
06-29-2004, 01:46 AM
Well. one reason why could be that the brackets are very impractical to type on some (most?) international keyboards. Alt Gr-8 and Alt Gr-9 is needed for brackets on my keyboard, for instance. Thus, for the users, the brackets are counter-intuitive, and difficult and slow to type. Angles, on the other hand, have their own key and need no hand contortions to use.
Why not just eanble the wysiwyg ? which will do this by default ?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.