Improves and fixes HTML markup replacement

- Fixed Input.Text still showing HTML.
- Improved markup replacement to be case-insensitive.