Hi. I'm currently trying to make a comment system. It works great, 'cept, if the user writes </html> or... any other html tag that doesn't close. Now, my initial idea was to convert string, i.e: space(' ', 32) -> &lpsb;, \n -> <br />. For that, I made an array, and inserted it into preg_replace. Now, that worked fine. Until I wanted to add some more conversions, namely the html tags. < would be converted into < and > would be converted into > Now, when the I attempted to write a comment, the aftermath of the operations resulted in some odd outcome. I.E, <br />&lpsb; blah blah blah.
Could anyone help me out with this matter?