DeanWhitehouse Posted August 20, 2008 Share Posted August 20, 2008 When i have code tags in my bbcode how do i make it not parse the code, will htmlentities stop all code running thats entered? Quote Link to comment https://forums.phpfreaks.com/topic/120564-solved-code-tags-bbcodenot-regex/ Share on other sites More sharing options...
genericnumber1 Posted August 20, 2008 Share Posted August 20, 2008 I don't understand, could you give me an example? Quote Link to comment https://forums.phpfreaks.com/topic/120564-solved-code-tags-bbcodenot-regex/#findComment-621263 Share on other sites More sharing options...
DeanWhitehouse Posted August 20, 2008 Author Share Posted August 20, 2008 the code tags here. So will htmlentities not run the code but print it , like this <?php echo "this"; ?> it isnt run , just printed Quote Link to comment https://forums.phpfreaks.com/topic/120564-solved-code-tags-bbcodenot-regex/#findComment-621272 Share on other sites More sharing options...
genericnumber1 Posted August 20, 2008 Share Posted August 20, 2008 Correct. You might also look into htmlspecialchars() to keep it from interfering with your bbcode. Quote Link to comment https://forums.phpfreaks.com/topic/120564-solved-code-tags-bbcodenot-regex/#findComment-621274 Share on other sites More sharing options...
DeanWhitehouse Posted August 20, 2008 Author Share Posted August 20, 2008 any toher security tips? Quote Link to comment https://forums.phpfreaks.com/topic/120564-solved-code-tags-bbcodenot-regex/#findComment-621284 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.