Update:My addition is not a complete solution by any means, for example it will fail to correctly interpret the following, (organising it so that it does could be a worthwhile exercise for you):
<hi > <a href="http://permonks.org">Link</a> <input value="Next>" type="submit">
In reply to Re^3: convert characters
by Utilitarian
in thread convert characters
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |