Reputation: 5332
I read the contents of a text file, use inline editor to edit then write back to same text file. Do I need to use htmlspecialchars? If I do, when? Displaying to html, writing back to the file or both?
Upvotes: 0
Views: 279
Reputation: 38092
When you output to the edit page ( the one with ckeditor ) you use both stripslashes() and htmlspecialchars().
Upvotes: 2