Skip to content
Advertisement

how to replace specified characters with space in a text file with php

text files name is 32viestit21.txt

JavaScript

and the reason why i ask this is that my website has chat and the chat has xss problem and i have to fix it and chat works so that users inputs goes to txt file then php shows the txt file data.

Advertisement

Answer

Use htmlspecialchars() to encode the message.

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