Reputation: 1172
I'm trying to remove tags from the status feed on my website to stop html/php/javascript injection using the strip_tags() php command. I'm using a dynamic table and this is my code, except it doesn't work.<?php echo strip_tags($row_chat['content'];, '') ?>
What's going wrong?
Upvotes: 0
Views: 250
Reputation: 4583
Try This
<?php echo strip_tags($row_chat['content']); ?>
Misplaced ";".
Start reading the documentation https://php.net/strip_tags
Upvotes: 2