Harvey Fletcher
Harvey Fletcher

Reputation: 1172

Strip tags in dynamic table

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

Answers (1)

JazzCat
JazzCat

Reputation: 4583

Try This

<?php echo strip_tags($row_chat['content']); ?>

Misplaced ";".

Start reading the documentation https://php.net/strip_tags

Upvotes: 2

Related Questions