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? Link to comment https://forums.phpfreaks.com/topic/79298-solved-htmlspecialcharsreal-escape-help/ 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 Link to comment https://forums.phpfreaks.com/topic/79298-solved-htmlspecialcharsreal-escape-help/#findComment-401378 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. Link to comment https://forums.phpfreaks.com/topic/79298-solved-htmlspecialcharsreal-escape-help/#findComment-401392 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. Link to comment https://forums.phpfreaks.com/topic/79298-solved-htmlspecialcharsreal-escape-help/#findComment-401396 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.