ngungo
ngungo

Reputation: 5332

Is htmlspecialchars needed for inline ckeditor?

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

Answers (1)

EpokK
EpokK

Reputation: 38092

When you output to the edit page ( the one with ckeditor ) you use both stripslashes() and htmlspecialchars().

Upvotes: 2

Related Questions