Jump to content

Implement BBCode on custom CMS?

- - - - -

  • Please log in to reply
1 reply to this topic

#1
liamzebedee

liamzebedee

    Programmer

  • Members
  • PipPipPipPip
  • 129 posts
I have my own custom yet unsecure (probably vulnerable to XSS) Content Management System and I am looking to make it more secure. Currently when making a new post you are allowed to use only specific html tags(such as hyperlinks). After viewing this site-
http://sla.ckers.org/forum/read.php?2,5017,5021
I have realised even hyperlinks are dangerous and am seeking to implement another way of posting html. I have come to the conclusion that I need to use something like BBCode.

My question is, how do I implement this(BBCODE script) into my existing code (PHP/SQL)?

#2
Mark Wylde

Mark Wylde

    Learning Programmer

  • Members
  • PipPipPip
  • 46 posts
PHP comes with a built in BBCode parser. You can find more information about it at the address below:
PHP BBcode Parser




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users