LemonInflux Posted November 28, 2007 Share Posted November 28, 2007 I'm creating a BBCode parser, and everything's working but one thing; I need code tags, but I will need to real_escape/htmlspecialchars the post to make sure it isn't malicious. The only problem is if I real_escape with code tags that contain php, the php will be removed. If I specialchars the post with php, I can't have syntax highlighting (or, not easily). How do I get round this? Quote Link to comment Share on other sites More sharing options...
revraz Posted November 28, 2007 Share Posted November 28, 2007 I entered BBCODE in the search field http://www.phpfreaks.com/forums/index.php/topic,152188.0.html Quote Link to comment Share on other sites More sharing options...
LemonInflux Posted November 28, 2007 Author Share Posted November 28, 2007 I don't need help with bbcode. My bbcode is fine. I need help with excluding stuff from htmlspecialchars. Quote Link to comment Share on other sites More sharing options...
LemonInflux Posted November 28, 2007 Author Share Posted November 28, 2007 Never mind, thought of a different idea. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.