I was wondering why other web developers as they try to post and publish comments at the comment box and put some links on it, they just found it very easy, that is why it made me ponder for a couple of days on how to make my own HTML encoder to make my post commenters to have a guide in posting javascript and HTML codes at the comment box section.
A little idea on the process.
- '<' becomes '&alt;'
- '>' becomes '>'
- '"' (double quote) becomes '"e;'
- ''' (single quote) becomes '''
- '&' becomes '&'
The HTML/Javascript Encoder: Please enter your data inside the box
No comments:
Post a Comment