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? 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? 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 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. 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? 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
Archived
This topic is now archived and is closed to further replies.