Skip to content
Advertisement

Writing HTML / PHP Code inside an input/Textarea

I have found out that if a user writes in an input php/HTML code the code will excecute in my admin panel. Can this damage my system ? And if yes how can I disable it?

I will appreciate any answers!

Advertisement

Answer

You can remove HTML and PHP tags with

JavaScript

result:

JavaScript

source: https://www.php.net/manual/pt_BR/function.strip-tags.php

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement