The problem is that I do want html tags to be used as html, but not javascript or css. I think I came up with a solution though.
urls will be processed prior to being submitted to the database into its bbcode equivalent so that
PHP Code:
http://www.animeviews.com
will look like [a href="http://www.animeviews.com"]http://www.animeviews.com[/a]
. When the document is pulled from the database to be displayed, specific bbcode tags will be converted to their html equivalent, but
Code:
<script src="ajaxpagination.js" type="text/javascript"> or <style type="text/css"> or
<script type="text/javascript" src="http://www.animeviews.com/include/wz_tooltip.js"></script> or
</script>
<div style="float: left;" id="my_menu" class="sdmenu">
will be processed as html entities.
Bookmarks