HTML Encode text
Split controller and view