When an admin manually changes a user's password, they need to type (or generate) the password into an HTML input which is then submitted to PHP.
How would I secure a input that is purpose is for secure passwords, which means special/html characters such as '>', '#', '<', etc.
Previously, I used:
<?php htmlspecialchars(strip_tags($password)) ?>
But this was changing the password to something else, I'm guessing to the character entity format - I cannot see what it's changing it too, due to one-way hashing via bcrypt.
EDIT: For example, this is a password *62mA<Edq<Kfx)3y
when I check the output of the above code, it outputs it to *62mA
Thanks